Closed FrankBro closed 5 years ago
Hi, I'm on holiday at the moment, but will try to take a look soon. This is indeed a bug and it was probably introduced by the rank-2 types support introduced by commit dedfae157. I will keep you posted!
Hi, I found the issue. If you look at line 164 in the file src/Expresso/Type.hs there is a TODO because I knew this line was wrong at the time I wrote it (I was intending to prune the substitution map elsewhere). If you change the line to read "Just t -> apply s t", the issue will be fixed. I will commit a proper fix when I get back from holiday and add some more tests. Many thanks!
I've committed a quick fix via the github web UI: https://github.com/willtim/Expresso/commit/ea82773874c7f4f1594a7becfcdc1c376660d92e
Test case for this pushed
Shouldn't the type of
div
beI noticed that if I swap
Ok
andDivBy0
, I get