logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Problem deriving instances: msg#00189

Subject: Problem deriving instances
With GHC compiled and downloaded from the read-only repository this morning:

tar -xzf instances.tar.gz
cd instances
make

produces the error

CodedValue.hs:14:12:
    Could not deduce (HasWrapper a IO) from the context (HasCodedValue a)
      arising from use of `doDecodeIO1' at CodedValue.hs:14:12-22
    Probable fix:
      Add (HasWrapper a IO) to the type signature(s) for `doDecodeIO'
      Or add an instance declaration for (HasWrapper a IO)
    In the definition of `act': act = doDecodeIO1 "foo" codedValue view
    In the definition of `doDecodeIO':
        doDecodeIO codedValue view = let act = doDecodeIO1 "foo" codedValue 
view in act

but for earlier GHCs, for example 6.2, it works.  What is going on?

Attachment: instances.tar.gz
Description: GNU Zip compressed data

_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/cvs-ghc
<Prev in Thread] Current Thread [Next in Thread>