Skip to content
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.

Not pulling down correct version of happy #563

Closed
mikail-khan opened this issue Aug 23, 2015 · 1 comment
Closed

Not pulling down correct version of happy #563

mikail-khan opened this issue Aug 23, 2015 · 1 comment

Comments

@mikail-khan
Copy link

Hi,
I'm new to Haskell and I was setting up my environment. I tried to install ghc-mod via cabal but it fell down due to the correct version of happy not being in my distribution (ghc-mod is expecting a version >= 1.17). It was easily fixed by doing cabal install happy which then proceeded to pull down version 1.19. I'm just wondering whether that is an issue with the ghc-mod build script in that if it doesn't find the correct version of happy, it doesn't try to pull down the right version? Sorry if I am missing something here, I am totally new to Haskell and cabal. Below is a copy of the install activity:

Downloading the latest package list from hackage.haskell.org
Skipping download: Local and remote files match.
Resolving dependencies...
Configuring haskell-src-exts-1.16.0.1...
Failed to install haskell-src-exts-1.16.0.1
Build log ( /Users/me/.cabal/logs/haskell-src-exts-1.16.0.1.log ):
Configuring haskell-src-exts-1.16.0.1...
setup-Simple-Cabal-1.22.4.0-x86_64-osx-ghc-7.8.4: The program 'happy' version

=1.17 is required but it could not be found.
cabal: Error: some packages failed to install:
ghc-mod-5.3.0.0 depends on haskell-src-exts-1.16.0.1 which failed to install.
haskell-src-exts-1.16.0.1 failed during the configure step. The exception was:
ExitFailure 1
hlint-1.9.21 depends on haskell-src-exts-1.16.0.1 which failed to install.
[1]+ Done cabal update
kleisli:~ me$ cabal install happy
Resolving dependencies...
Downloading happy-1.19.5...
Configuring happy-1.19.5...
Building happy-1.19.5...
Installed happy-1.19.5
kleisli:~ me$ cabal update & cabal install ghc-mod
[1] 20573
Downloading the latest package list from hackage.haskell.org
Skipping download: Local and remote files match.
Resolving dependencies...
Configuring haskell-src-exts-1.16.0.1...
Building haskell-src-exts-1.16.0.1...
Installed haskell-src-exts-1.16.0.1
Downloading hlint-1.9.21...
Configuring hlint-1.9.21...
Building hlint-1.9.21...
Installed hlint-1.9.21
Downloading ghc-mod-5.3.0.0...
Configuring ghc-mod-5.3.0.0...
Building ghc-mod-5.3.0.0...
Installed ghc-mod-5.3.0.0
[1]+ Done cabal update

@DanielG
Copy link
Owner

DanielG commented Aug 24, 2015

Haven't looked into why this still is an issue in a while but I think this is the one: haskell/cabal#220 which also links to this: haskell-suite/haskell-src-exts#14

@DanielG DanielG closed this as completed Aug 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants