| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Looksee.Examples
Description
Example parsers
Synopsis
- data Json
- = JsonNull
- | JsonString !Text
- | JsonArray !(Seq Json)
- | JsonObject !(Seq (Text, Json))
- | JsonNum !Scientific
- | JsonBool !Bool
- jsonParser :: Parser Void Json
- data Arith
- arithParser :: Parser Void Arith
- data Atom
- = AtomIdent !Text
- | AtomString !Text
- | AtomInt !Integer
- | AtomSci !Scientific
- data Sexp
- sexpParser :: Parser Void Sexp
Documentation
A JSON value
Constructors
| JsonNull | |
| JsonString !Text | |
| JsonArray !(Seq Json) | |
| JsonObject !(Seq (Text, Json)) | |
| JsonNum !Scientific | |
| JsonBool !Bool |
An arithmetic expression
Constructors
| ArithNum !Rational | |
| ArithVar !Text | |
| ArithNeg Arith | |
| ArithMul Arith Arith | |
| ArithAdd Arith Arith | |
| ArithSub Arith Arith |
Leaves of S-expression trees
Constructors
| AtomIdent !Text | |
| AtomString !Text | |
| AtomInt !Integer | |
| AtomSci !Scientific |