Closed dariooddenino closed 2 years ago
Thanks for trying to figure it out! :+1:
I can't look into this immediately, but will definitely do so when I can.
I've pretty much figured it out, it is a bug in purescript-backend-optimizer
rather than something dodgy this library is doing. Will close this and open an issue there once I've got it down to a minimal reproduction, as it's quite tangled!
This was fixed in https://github.com/aristanetworks/purescript-backend-optimizer/pull/27, and was released as v1.1.1 🎉
Using
unformat
results in a runtime errorspago build && purs-backend-es bundle-app --no-build --to out.js
This results in this runtime error:
I've tried creating various mimimal cases involving
mapParserT
,State
, etc. but I was never able to reproduce this issue, sorry!