"Occurs check" error in generated Haskell code #2479
Labels
backend: ghc
Haskell code generation backend ("MAlonzo")
type: bug
Issues and pull requests about actual bugs
Milestone
Compiling the following module using
agda --compile --no-main InfiniteType.agda
yields the error:The problem occurs in the
scopeTm ρ (Case x l y r)
case. If we look at the generated code we can see a discrepancy between the two recursive calls toscopeTm
: the second one iscoe
rced a few times whereas the first one isn't.Weirdly enough removing the
Var
constructor makes the issue go away. I'm not sure what happens here...The text was updated successfully, but these errors were encountered: