Provide example in README

This commit is contained in:
Frederik Hanghøj Iversen 2019-08-08 16:42:27 +02:00
parent d6eee432c3
commit cb39856502

View file

@ -1 +1,29 @@
# gql2hs # gql2hs
## Usage
λ gql2hs << EOF
enum Bool {
FALSE
TRUE
}
scalar True
scalar False
union Boolean = True | False
type Record {
a: A
b: B!
c: [C!]!
d(e: E): D
}
EOF
data Bool = FALSE
| TRUE
type True = ()
type False = ()
data Boolean = Boolean__0 True
| Boolean__1 False
data Record = Record{a :: A, b :: B, c :: C, d :: E -> D}