Closed bluescreen303 closed 2 years ago
The issue here is that quicklook in 9.2 changed how rank-n types typecheck. Eta expanding things should fix it, but I don't understand what you mean by
Ignoring this (skipping tests) leads to very similar errors on the usage site.
Which usage site do you mean?
I'm happy to push a fix for the eta expansion, but I think this package is obsoleted by qualified do
What I meant was that when I skip testing do-notation
, my own code (the usage site) throws very similar errors as these tests do.
I will have a look at qualified do
first.
I haven't been following new haskell developments for a while now, so I wasn't aware of that.
The reason I'm still using do-notation
is because my CI system started to complain about all the example / tryout code I have based on your book "thinking with types" when nixpkgs
default ghc got updated to 9.0.2 :)
If I can change to qualified do
easily I will close this issue. I'll let you know in a few days.
I can confirm that the eta expansion does the trick.
But after that, I managed to indeed just get rid of do-notation
in full by using the QualifiedDo extension.
Thanks for pointing this out!
No problem, glad you figured it out! I'll archive this repo towards that end.
Although the package itself compiles, compiling the tests fails:
Ignoring this (skipping tests) leads to very similar errors on the usage site.