cabal package haskore-vintage fails to build

Hi all, I'm new to this list, and know very little about haskell. I am trying to install the package haskore-vintage on mac osx version 10.6.8, using cabal, but this fails; see the log below. I have ghc version 7.6.3, and cabal-install version 1.16.0.2. ------------------------------------------------------------------------------ $ cabal install haskore-vintage Resolving dependencies... Configuring haskore-vintage-0.1... Building haskore-vintage-0.1... Preprocessing library haskore-vintage-0.1... [ 1 of 16] Compiling Haskore.Monads ( src/Haskore/Monads.hs, dist/build/Haskore/Monads.o ) [ 2 of 16] Compiling Haskore.Utils ( src/Haskore/Utils.hs, dist/build/Haskore/Utils.o ) src/Haskore/Utils.hs:87:23: Not in scope: `catch' src/Haskore/Utils.hs:93:23: Not in scope: `catch' Failed to install haskore-vintage-0.1 cabal: Error: some packages failed to install: haskore-vintage-0.1 failed during the building phase. The exception was: ExitFailure 1 $ ------------------------------------------------------------------------------ Does anyone know how to resolve this? Related problems I found: https://code.google.com/p/leksah/issues/detail?id=272 (no solution given). And here: https://github.com/haskell/cabal/issues/1137 it appears they think it is a combination of Cabal 1.10 / cabal-install 0.10 and GHC 7.6 the causes the problem with "catch", but I use cabal 1.16. Many thanks in advance, Dimitri

Hi Dimitri You should be able to get it to work by downloading the archive, gunzip and untarring the source and changing Utils.hs to include this line after the line "import Control.Monad": import Control.Exception hiding ( assert ) After that build with these commands from the top of the source tree: runhaskell Setup.hs configure runhaskell Setup.hs build runhaskell Setup.hs install The original problem is that `catch` is no longer export by Prelude in GHC 7.6

Hi, It is better to use "cabal unpack" to download and unpack the source. Cheers Sylvain Le 20/08/2013 23:55, Stephen Tetley a écrit :
Hi Dimitri
You should be able to get it to work by downloading the archive, gunzip and untarring the source and changing Utils.hs to include this line after the line "import Control.Monad":
import Control.Exception hiding ( assert )
After that build with these commands from the top of the source tree:
runhaskell Setup.hs configure runhaskell Setup.hs build runhaskell Setup.hs install
The original problem is that `catch` is no longer export by Prelude in GHC 7.6
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Many thanks Stephen, works like a charm! Finally, I can start composing music, can't wait! @Sylvain: why is cabal unpack better than tar zxvf ? Greetings, Dimitri On Aug 20, 2013, at 23:55 , Stephen Tetley wrote:
Hi Dimitri
You should be able to get it to work by downloading the archive, gunzip and untarring the source and changing Utils.hs to include this line after the line "import Control.Monad":
import Control.Exception hiding ( assert )
After that build with these commands from the top of the source tree:
runhaskell Setup.hs configure runhaskell Setup.hs build runhaskell Setup.hs install
The original problem is that `catch` is no longer export by Prelude in GHC 7.6
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

It also uses the cached version of the tar file which is already on your disk, if you have previously installed the package, so it does not even need to download anything. -Brent On Wed, Aug 21, 2013 at 01:00:12PM +0200, Sylvain HENRY wrote:
It may be a bit quicker as it downloads and unpacks the package automatically.
cabal unpack haskore-vintage cd haskore-vintage-0.1 vim src/Haskore/Utils.hs cabal install
Le 21/08/2013 09:58, Dimitri Hendriks a écrit :
@Sylvain: why is cabal unpack better than tar zxvf ?
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
participants (4)
-
Brent Yorgey
-
Dimitri Hendriks
-
Stephen Tetley
-
Sylvain HENRY