Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Types
A builder for errors that support efficient concatenation.
Encoding
builderUtf8 :: Errors -> Builder Source #
Convert errors to builder. The errors are separated by a pair of characters: comma and space.
hPut :: Handle -> Errors -> IO () Source #
Print errors to the provided handle. Typically, System.IO.stderr
is provided as the handle. Each encoded error is suffixed with a newline.
This is a convenience function for the common case where, after a failed parse, an application prints out all parse errors and then exits.
Create
Conversion
toSmallArray :: Errors -> SmallArray Error Source #
Convert errors to array.