Re: New type error when compiling with GHC head

2010-09-16 Thread David Peixotto
is monomorphic, hence the error. > > Give it a type signature, or make it top-level. Either works fine. > > Simon > > From: cvs-ghc-boun...@haskell.org [mailto:cvs-ghc-boun...@haskell.org] On > Behalf Of David Peixotto > Sent: 16 September 2010 17:38 > To: cvs-ghc@

RE: New type error when compiling with GHC head

2010-09-16 Thread Simon Peyton-Jones
From: cvs-ghc-boun...@haskell.org [mailto:cvs-ghc-boun...@haskell.org] On Behalf Of David Peixotto Sent: 16 September 2010 17:38 To: cvs-ghc@haskell.org Subject: New type error when compiling with GHC head I'm now getting a type error when compiling with GHC HEAD that I wasn't getting

New type error when compiling with GHC head

2010-09-16 Thread David Peixotto
I'm now getting a type error when compiling with GHC HEAD that I wasn't getting before (also GHC 6.10 and GHC 6.12 work fine). The code is part of a larger program that I did not write and the type error is confusing to me. I cut it down to the minimal I could, so hopefully it will be useful. Ca