1
1
mirror of https://github.com/github/semantic.git synced 2025-01-03 13:02:37 +03:00

Define a Pretty instance for ByteString.

This commit is contained in:
Rob Rix 2017-08-22 13:45:09 -04:00
parent 3d4c52d22e
commit cf1619b58f

View File

@ -3,4 +3,9 @@ module Data.Functor.Classes.Pretty.Orphans
( module Pretty
) where
import Data.ByteString
import Data.Functor.Classes.Pretty as Pretty
import Data.Text.Encoding
instance Pretty ByteString where
pretty = pretty . decodeUtf8With (\ _ -> ('\xfffd' <$))