json-query-0.2.3.1: Kitchen sink for querying JSON
Safe HaskellSafe-Inferred
LanguageHaskell2010

Json.Errors

Synopsis

Types

data Errors Source #

A builder for errors that support efficient concatenation.

Instances

Instances details
Semigroup Errors Source # 
Instance details

Defined in Json.Errors

Show Errors Source # 
Instance details

Defined in Json.Errors

Eq Errors Source # 
Instance details

Defined in Json.Errors

Methods

(==) :: Errors -> Errors -> Bool #

(/=) :: Errors -> Errors -> Bool #

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.