Malformed class assertion with GHCi's output (a - a ~ T a)

2009-09-15 Thread Sean Leather
I queried (:t) the type of something in GHCi, and it told me the value should have the constraint (a - a ~ T a) among others. When I tried to use this in code, I got a malformed class assertion. So, I put parentheses around the function type, ((a - a) ~ T a), and everybody is happy again. Is there

How to solve ghc-stage2: mkTextEncoding: invalid argument (Invalid argument) issue.

2009-09-15 Thread Karel Gardas
Hello, recently I've found out that my solaris-based GHC buildbot is completely unusable since it always (when it get to, which means it does not fail with usual magic number mismatch: old/corrupt interface file?) fails with: inplace/bin/ghc-stage2 -H32m -O -DNEW_GHC_LAYOUT -hide-all-packages

Re: How to solve ghc-stage2: mkTextEncoding: invalid argument (Invalid argument) issue.

2009-09-15 Thread Duncan Coutts
On Tue, 2009-09-15 at 16:56 +0200, Karel Gardas wrote: Hello, recently I've found out that my solaris-based GHC buildbot is completely unusable since it always (when it get to, which means it does not fail with usual magic number mismatch: old/corrupt interface file?) fails with: