On Thu, 2008-11-06 at 16:36 -0800, Conal Elliott wrote:
> Hi Andres,
> 
> I just downloaded and compiled lhs2tex-1.14 on ghc 6.10.1, and I'm
> getting an error:
> 
> ...
> [16 of 19] Compiling Math             ( Math.lhs, Math.o )
> [17 of 19] Compiling FileNameUtils    ( FileNameUtils.lhs,
> FileNameUtils.o )
> 
> FileNameUtils.lhs:81:35:
>     Ambiguous type variable `b' in the constraint:
>       `GHC.Exception.Exception b'
>         arising from a use of `catch' at
> FileNameUtils.lhs:(81,35)-(89,60)
>     Probable fix: add a type signature that fixes these type
> variable(s)

> Any advice?

Constrain the version of base to be < 4. You can do that in the .cabal
file or if you use cabal-install-0.6 or later then it does that by
default for packages which do not specify any constraint (on the basis
that most existing packages build with base 3 and new ones that need
base 4 will say so).

Duncan

_______________________________________________
Haskell mailing list
Haskell@haskell.org
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to