Skip to content

I try to install with cabal install graphql-api, but I have an issue #121

@tibastral

Description

@tibastral

Building library for graphql-api-0.1.2..
[ 1 of 18] Compiling GraphQL.Internal.Arbitrary ( src/GraphQL/Internal/Arbitrary.hs, dist/build/GraphQL/Internal/Arbitrary.o )
[ 2 of 18] Compiling GraphQL.Internal.OrderedMap ( src/GraphQL/Internal/OrderedMap.hs, dist/build/GraphQL/Internal/OrderedMap.o )
[ 3 of 18] Compiling GraphQL.Internal.Syntax.Tokens ( src/GraphQL/Internal/Syntax/Tokens.hs, dist/build/GraphQL/Internal/Syntax/Tokens.o )
[ 4 of 18] Compiling GraphQL.Internal.Syntax.AST ( src/GraphQL/Internal/Syntax/AST.hs, dist/build/GraphQL/Internal/Syntax/AST.o )

src/GraphQL/Internal/Syntax/AST.hs:55:1: warning: [-Wdodgy-imports]
Module ‘Protolude’ does not export ‘Type’
|
55 | import Protolude hiding (Type)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 5 of 18] Compiling GraphQL.Internal.Syntax.Parser ( src/GraphQL/Internal/Syntax/Parser.hs, dist/build/GraphQL/Internal/Syntax/Parser.o )

src/GraphQL/Internal/Syntax/Parser.hs:86:23: error:
Ambiguous occurrence ‘option’
It could refer to either ‘Protolude.option’,
imported from ‘Protolude’ at src/GraphQL/Internal/Syntax/Parser.hs:8:1-41
(and originally defined in ‘Data.Semigroup’)
or ‘Data.Attoparsec.Text.option’,
imported from ‘Data.Attoparsec.Text’ at src/GraphQL/Internal/Syntax/Parser.hs:23:5-10
(and originally defined in ‘Data.Attoparsec.Combinator’)
|
86 | field = AST.Field <$> option empty (pure <$> alias)
| ^^^^^^

src/GraphQL/Internal/Syntax/Parser.hs:333:12: error:
Ambiguous occurrence ‘option’
It could refer to either ‘Protolude.option’,
imported from ‘Protolude’ at src/GraphQL/Internal/Syntax/Parser.hs:8:1-41
(and originally defined in ‘Data.Semigroup’)
or ‘Data.Attoparsec.Text.option’,
imported from ‘Data.Attoparsec.Text’ at src/GraphQL/Internal/Syntax/Parser.hs:23:5-10
(and originally defined in ‘Data.Attoparsec.Combinator’)
|
333 | optempty = option mempty
| ^^^^^^
cabal: Leaving directory '/var/folders/zb/jqp3vqj170nc5vkyw8k2p_tw0000gn/T/cabal-tmp-13818/graphql-api-0.1.2'
cabal: Error: some packages failed to install:
graphql-api-0.1.2-HmKbgdf15yT6zJHN4EkHkp failed during the building phase. The
exception was:
ExitFailure 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions