| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Text.Show.Prettyprint.Diagnostic
Description
These functions are identical to the ones in the main module, but instead of falling back to the un-prettyprinted input, they will report an error on failure.
>>>putStrLn (prettifyShowErr "Imbalanced (Parenthesis)) here")ERROR (interactive):1:25: error: expected: char literal, end of input, identifier, list, number, record, string literal, tuple, unit Imbalanced (Parenthesis)) here<EOF> ^
Synopsis
- prettifyShowErr :: String -> String
 - prettyShowErr :: Show a => a -> String
 - prettyPrintErr :: Show a => a -> IO ()
 
Documentation
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.
prettyPrintErr :: Show a => a -> IO () Source #
prettifyShowErr with the show and the putStrLn baked in.