diff options
author | tv <tv@krebsco.de> | 2019-01-23 13:15:20 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2019-01-23 13:51:10 +0100 |
commit | 4fa5cb937c016f8c10bf8f40d017ca3a436db2d3 (patch) | |
tree | 1135f4261e3bd2a86c94eff2526befd1c18ae1e9 /src/Data/ByteString/Char8 | |
parent | d40815fd56bf1895af89b72b1171675a2e0ae5f7 (diff) |
Reaktor.Plugins.System: print exec errors to IRCv0.1.1
Diffstat (limited to 'src/Data/ByteString/Char8')
-rw-r--r-- | src/Data/ByteString/Char8/Extended.hs | 6 |
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 |