Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to install on ArchLinux #29

Closed
madjar opened this issue Apr 20, 2015 · 4 comments
Closed

Fail to install on ArchLinux #29

madjar opened this issue Apr 20, 2015 · 4 comments

Comments

@madjar
Copy link

madjar commented Apr 20, 2015

Hello there. I'm trying to install stackage-cli on ArchLinux (cabal 1.22.2.0, ghc 7.10.1), and it fails to build.

Preprocessing executable 'stackage-sandbox' for stackage-cli-0.0.0...
[1 of 2] Compiling Paths_stackage_cli ( dist/build/autogen/Paths_stackage_cli.hs, dist/build/stackage-sandbox/stackage-sandbox-tmp/Paths_stackage_cli.o )
[2 of 2] Compiling Main             ( main/Sandbox.hs, dist/build/stackage-sandbox/stackage-sandbox-tmp/Main.o )

main/Sandbox.hs:321:46:
    No instance for (Foldable t0) arising from a use of ‘elem’
    The type variable ‘t0’ is ambiguous
    Note: there are several potential instances:
      instance Foldable (Const m) -- Defined in ‘Control.Applicative’
      instance Foldable (Either a) -- Defined in ‘Data.Foldable’
      instance Foldable Data.Functor.Identity.Identity
        -- Defined in ‘Data.Functor.Identity’
      ...plus 8 others
    In the first argument of ‘flip’, namely ‘elem’
    In the second argument of ‘(.)’, namely ‘flip elem "/\\"’
    In the first argument of ‘T.takeWhile’, namely
      ‘(not . flip elem "/\\")’

main/Sandbox.hs:321:51:
    No instance for (Data.String.IsString (t0 Char))
      arising from the literal ‘"/\\"’
    The type variable ‘t0’ is ambiguous
    Note: there is a potential instance available:
      instance Data.String.IsString [Char] -- Defined in ‘Data.String’
    In the second argument of ‘flip’, namely ‘"/\\"’
    In the second argument of ‘(.)’, namely ‘flip elem "/\\"’
    In the first argument of ‘T.takeWhile’, namely
      ‘(not . flip elem "/\\")’
cabal: Error: some packages failed to install:
stackage-cli-0.0.0 failed during the building phase. The exception was:
ExitFailure 1

This doesn't look like a problem with dependencies, so maybe ghc 7.10 isn't supported yet?

Thanks a lot!

@snoyberg
Copy link
Member

Definitely looks like a GHC 7.10 issue, thanks for the report. Looking into it now.

snoyberg added a commit that referenced this issue Apr 20, 2015
@snoyberg
Copy link
Member

This should now be resolved with 0.0.0.1 on Hackage, can you confirm?

@madjar
Copy link
Author

madjar commented Apr 20, 2015

I confirm that it works. Thanks a lot.

@snoyberg
Copy link
Member

No problem, thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants