[Haskell-cafe] Re: Fwd: installing happy 1.17

Thomas Hartman tphyahoo at gmail.com
Sat Jun 7 17:46:23 EDT 2008

great, sudo cabal install from inside 1.17 distribution dir now seems
to do the right thing.

however, after it's done installing (apparently without error) the
happy version is still 1.16 and the happy executable is from 2006.

This means that I still can't install other packages that rely on happy >=1.17

sudo cabal install haskell-src-exts
Resolving dependencies...
'haskell-src-exts-0.3.4' is cached.
Configuring haskell-src-exts-0.3.4...
cabal: happy version >=1.17 is required but the version found at
/usr/bin/happy is version 1.16
cabal: Error: some packages failed to install:
haskell-src-exts-0.3.4 failed during the configure step. The exception was:
exit: ExitFailure 1

happy-1.17>sudo cabal install
Resolving dependencies...
Warning: defaultUserHooks in Setup script is deprecated.
Configuring happy-1.17...
Warning: No 'build-type' specified. If you do not need a custom Setup.hs or
./configure script then use 'build-type: Simple'.
Preprocessing executables for happy-1.17...
Building happy-1.17...
[ 1 of 18] Compiling Paths_happy      (
dist/build/happy/happy-tmp/Paths_happy.o )
Linking dist/build/happy/happy ...
Installing: /home/thartman/.cabal/bin
thartman at thartman-laptop:~/haskellInstalls/smallInstalls/happy-1.17>happy
Happy Version 1.16 Copyright (c) 1993-1996 Andy Gill, Simon Marlow (c)
1997-2005 Simon Marlow

Happy is a Yacc for Haskell, and comes with ABSOLUTELY NO WARRANTY.
This program is free software; you can redistribute it and/or modify
it under the terms given in the file 'LICENSE' distributed with
the Happy sources.
thartman at thartman-laptop:~/haskellInstalls/smallInstalls/happy-1.17>ls
-l `which happy`
-rwxr-xr-x 1 root root 941968 2006-11-23 21:34 /usr/bin/happy
thartman at thartman-laptop:~/haskellInstalls/smallInstalls/happy-1.17>

2008/6/7 Duncan Coutts <duncan.coutts at worc.ox.ac.uk>:
> On Sat, 2008-06-07 at 21:20 +0200, Bertram Felgenhauer wrote:
>> Duncan Coutts wrote:
>> > The immediate workarounds are:
>> >       * unregister Cabal-1.5.2
>> Better, hide it (that's reversible) - or does that not work with
>> cabal-install?
> If Cabal ignored hidden packages then you could never install packages
> that depend on the ghc package since that's always hidden.
> Though again we could use that as a preference rather than a hard
> constraint.
> Duncan
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list