summaryrefslogtreecommitdiffstats
path: root/src/Data/ByteString
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2019-01-23 13:15:20 +0100
committertv <tv@krebsco.de>2019-01-23 13:51:10 +0100
commit4fa5cb937c016f8c10bf8f40d017ca3a436db2d3 (patch)
tree1135f4261e3bd2a86c94eff2526befd1c18ae1e9 /src/Data/ByteString
parentd40815fd56bf1895af89b72b1171675a2e0ae5f7 (diff)
Reaktor.Plugins.System: print exec errors to IRC
Diffstat (limited to 'src/Data/ByteString')
-rw-r--r--src/Data/ByteString/Char8/Extended.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Data/ByteString/Char8/Extended.hs b/src/Data/ByteString/Char8/Extended.hs
index 4d46cd2..ca0c44a 100644
--- a/src/Data/ByteString/Char8/Extended.hs
+++ b/src/Data/ByteString/Char8/Extended.hs
@@ -1,11 +1,14 @@
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Data.ByteString.Char8.Extended
( module Data.ByteString.Char8
+ , show
) where
import Data.Aeson
import Data.ByteString.Char8
import Data.Text.Encoding (encodeUtf8)
+import Prelude hiding (show)
+import qualified Prelude
instance FromJSON ByteString where
parseJSON (String t) = pure (encodeUtf8 t)
@@ -13,3 +16,6 @@ instance FromJSON ByteString where
instance FromJSONKey ByteString where
fromJSONKey = FromJSONKeyText encodeUtf8
+
+show :: Show a => a -> ByteString
+show = pack . Prelude.show