1 Jan 2011 08:00
#4875: ghc misdiagnoses a compile time error concerning parameterized types
GHC <cvs-ghc <at> haskell.org>
2011-01-01 07:00:42 GMT
2011-01-01 07:00:42 GMT
#4875: ghc misdiagnoses a compile time error concerning parameterized types
---------------------------------+------------------------------------------
Reporter: Stef Joosten | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.12.3 | Keywords:
Testcase: | Blockedby:
Os: Windows | Blocking:
Architecture: Unknown/Multiple | Failure: Other
---------------------------------+------------------------------------------
Please find the script HaskellBug.hs at the bottom of this message.
Here is how to reproduce the behaviour in two steps.
Step 1: verify that Module HaskellBug produces the following error
message:
[1 of 1] Compiling HaskellBug ( \HaskellBug.hs, interpreted )
\HaskellBug.hs:12:22:
`rel' is not applied to enough type arguments
Expected kind `??', but `rel' has kind `* -> *'
In the type `rel -> concept'
In the class declaration for `Association'
Step 2: remove the definition of class Morphic r c and verify that the
script is now error free.
You have now reproduced the symptoms.
Assessment:
(Continue reading)
RSS Feed