Safe Haskell | None |
---|---|
Language | Haskell2010 |
Format a show
-generated string to make it nicer to read.
>>>
:{
(putStrLn . prettyShow . Data.Map.fromList) [("hello", Just True), ("world", Nothing), ("!", Just False)] :} fromList [("!",Just False) ,("hello",Just True) ,("world",Nothing)]
See the readme for some more examples.
- prettifyShow :: String -> String
- prettyShow :: Show a => a -> String
- prettifyShowErr :: String -> String
- prettyShowErr :: Show a => a -> String
Documentation
prettifyShow :: String -> String Source #
Prettyprint a string produced by show
. On parse error, silently fall back
to a non-prettyprinted version.
prettyShow :: Show a => a -> String Source #
prettifyShow
with the show
baked in.
Diagnostic functions
prettifyShowErr :: String -> String Source #
Attempt to prettify a string produced by show
. Report error information
on failure.
prettyShowErr :: Show a => a -> String Source #
prettifyShowErr
with the show
baked in.