Hi there,
while compiling the latest Generic Haskell version I got the following
linker error:
UHA_Parser.o(.text+0x117f13): In function `r18Ks_entry':
: undefined reference to `DataziTuple_Z94T_con_info'
collect2: ld returned 1 exit status
The file UHA_Parser.hs is a generated parser for the
Are Unit and Z0T considered equal?
In GHC/Base.hcr they are both defined:
-
%data GHCziBase.Unit =
{GHCziBase.Unit};
%data GHCziBase.Z0T =
{GHCziBase.Z0T};
-
In .../ghc/compiler/prelude/primops.txt at line 2669 we find:
-
primop FinalizeWeakOp finalizeWeak# GenPrimOp
| I have found what causes the bug and implemented a possibly
| fix for it.
| The problem has to do with source types that aren't expanded before
| tidying them.
Quite right. Well found.
| I believe that there are three possible fixes:
|
| 1. Make sure that all type variables that are