haskell-graphql / graphql-api

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

Ambiguous occurence of `Type` #150

Closed marcosh closed 6 years ago

marcosh commented 6 years ago

Trying to do stack build graphql-api in an new project, I get the following error

Ambiguous occurrence ‘Type’
        It could refer to either ‘Protolude.Type’,
                                 imported from ‘Protolude’ at src/GraphQL/Internal/Syntax/AST.hs:55:1-16
                                 (and originally defined in ‘GHC.Types’)
                              or ‘GraphQL.Internal.Syntax.AST.Type’,
                                 defined at src/GraphQL/Internal/Syntax/AST.hs:244:1

I'm quite a newbie, so I might well be wrong, but it looks like a version problem, maybe somehow related to #121

jml commented 6 years ago

Yeah, I had to fix this locally recently. We need to change the Protolude import to hide Type.

jml commented 6 years ago

Fixed by #154