`last` usage
Closed this issue · 5 comments
I'm trying to use last function. It is ambiguous with Prelude's last, so I'll hide it:
import Prelude hiding (last)
Then it compiles, but it does throw an exception in runtime:
Uncaught ReferenceError: Main$last is not defined
So either there is a bug in the library or I'm doing something in a no-good way.
Probably a bug specific to hiding Prelude imports. I'll check it out, thanks!
Quick fix is to change JQuery.hs to import Prelude hiding (last)
. This seems to happen only when an imported module imports Prelude.
Extremely high effort/LOC on that one :) please verify that it works for you and I can upload it to hackage.
I verified by uninstalling fay package, cloning fay, building it, installing and compiling my example, seeing that it works! Thanks
This was released with Fay 0.14.5.0