Skip to content

Quasiquoting / TH support #147

Open
Open
@jml

Description

@jml

It would be nice to just embed a GraphQL schema in Haskell code and then have a computer do most of the work to translating it to Haskell types. I don't know if this is even possible, but it's worth a shot.

Motivation is that it's a little bit tricky to remember how to map GraphQL schemas to Haskell types (how do I do defaults?). Probably the difficulty in implementing will be mapping GraphQL type names to Haskell types.

I guess an alternative to a quasiquoter would be a one-off code generator.

Probably do this as a different library, but in this repo.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions