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:
parent
3d4c52d22e
commit
cf1619b58f
@ -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' <$))
|
||||
|
Loading…
Reference in New Issue
Block a user