[Haskell-cafe] Fwd: problem with cabal install MissingH-1.1.1.0

Ozgur Akgun ozgurakgun at gmail.com
Thu Sep 22 19:19:12 CEST 2011


Ooops, apparently I forgot to reply to the list. Sorry.

---------- Forwarded message ----------
From: Ozgur Akgun <ozgurakgun at gmail.com>
Date: 22 September 2011 16:49
Subject: Re: [Haskell-cafe] problem with cabal install MissingH-1.1.1.0
To: Mariano Cortesi <mcortesi at gmail.com>


Hi Mariano.


On 22 September 2011 12:48, Mariano Cortesi <mcortesi at gmail.com> wrote:

> I'm with mac OS X lion, ghc version 7.2.1
> and when a i try to install MissingH version 1.1.1.0 it fails with
>
> [24 of 47] Compiling Data.BinPacking  ( src/Data/BinPacking.hs,
> dist/build/Data/BinPacking.o )
>
> src/Data/BinPacking.hs:45:6:
>     Illegal datatype context (use -XDatatypeContexts): (Num size,
>

This is weird, because on OS X Lion, and with the following versions, it
doesn't fail for me:

The Glorious Glasgow Haskell Compilation System, version 7.2.1
cabal-install version 0.10.2
using version 1.12.0 of the Cabal library


 Nevertheless, you can try the following to do what cabal asks you to do:

cabal install --ghc-option=-XDatatypeContexts


Which will give a warning, but should succeed anyway.

Hope this helps,
Ozgur



-- 
Ozgur Akgun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110922/9ebc3426/attachment.htm>


More information about the Haskell-Cafe mailing list