haskell-graphql / graphql-api

Write type-safe GraphQL services in Haskell
BSD 3-Clause "New" or "Revised" License
406 stars 35 forks source link

Drop custom NonEmptyList type #170

Closed jml closed 6 years ago

jml commented 6 years ago

We added a NonEmptyList type really early in our explorations. Haskell already has one, so we should use that.

This has a knock-on: the type system now prevents us from constructing schemas with empty field lists, etc. This means we need to change error types a little.

I would have liked to write tests for this, but, you know how it is.