Go to file
Frederik Hanghøj Iversen cb39856502 Provide example in README
2019-08-08 16:46:56 +02:00
app Update parser, implement a few more mappings 2019-08-08 16:40:05 +02:00
examples able to parse basic stuff 2019-07-31 22:25:10 +02:00
src/Language/GraphQL Update parser, implement a few more mappings 2019-08-08 16:40:05 +02:00
test waddap 2019-07-31 20:19:22 +02:00
.gitignore waddap 2019-07-31 20:19:22 +02:00
ChangeLog.md waddap 2019-07-31 20:19:22 +02:00
LICENSE waddap 2019-07-31 20:19:22 +02:00
package.yaml Rename executable 2019-08-01 09:51:04 +02:00
README.md Provide example in README 2019-08-08 16:46:56 +02:00
Setup.hs waddap 2019-07-31 20:19:22 +02:00
stack.yaml Update parser, implement a few more mappings 2019-08-08 16:40:05 +02:00

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}