Suspicious types when using -fext-core
I've tried the -fext-core flag. It seems to work well
but emits types that are a bit suspicious.
When I have the following class declaration
class Vändbar a where
vänd :: a -> a
I get the following code with the -fext-core flag:
zCDVändbar :: %forall a . (a -> a) -> a -> a =
%note "InlineMe"
\ @ a10 (tpl::a10 -> a10) -> tpl;
vänd :: %forall a . (a -> a) -> a -> a =
\ @ a10 (tpl::a -> a) -> tpl;
Look carefully at the definition of the function vänd.
The type of it's argument tpl should really be a10 ->
a10 just as in zCDVändbar.
Trac metadata
Trac field |
Value |
Version |
None |
Type |
Bug |
TypeOfFailure |
OtherFailure |
Priority |
normal |
Resolution |
ResolvedFixed |
Component |
Compiler |
Test case |
|
Differential revisions |
|
BlockedBy |
|
Related |
|
Blocking |
|
CC |
|
Operating system |
|
Architecture |
|