#6065: Suggested type signature causes a type error (even though it appears
correct)
---------------------------------------------------------+------------------
Reporter: tvynr | Owner:
Type: bug | Status: new
Priority: normal | Milestone: _|_
Component: Compiler (Type checker) | Version: 7.4.1
Keywords: type signature typeclass instance forall | Os: Linux
Architecture: x86_64 (amd64) | Failure: GHC
rejects valid program
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------------------------------+------------------
Comment(by tvynr):
Unfortunately, it seems that the reduced example has lost something;
applying the typecast to the upcast function in the original MWE.hs (as
shown in the newly-attached MWE2.hs) does not work; the same type error is
raised. Does MWE2.hs have the appropriate typecast or did I do something
wrong?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6065#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs