on master help sign in
Haddock on Parser

To explain that it might not be what users typically think of as a "parser"

commite6857519512356257b243ee4dd896720eb48fec5 authortomjaguarpaw <tom-github.com@jaguarpaw.co.uk> dateSat 28 Apr 2018, 09:54 (8 years ago) parentb816c73
1 file changed+3−1
Data/Aeson/Types/Internal.hs+3−1
Data/Aeson/Types/Internal.hs+3−1
@@ -270,7 +270,9 @@ type Failure f r = JSONPath -> String -> f r
270270-- | Success continuation.
271271type Success a f r = a -> f r
272272
273−-- | A JSON parser.
273+-- | A JSON parser. N.B. This might not fit your usual understanding of
274+-- "parser". Instead you might like to think of 'Parser' as a "parse result",
275+-- i.e. a parser to which the input has already been applied.
274276newtype Parser a = Parser {
275277 runParser :: forall f r.
276278 JSONPath