Eclipse show error in editor at explicit forall, though I can run the script without errors. How can I fix this? (This also happens when I run it in cmd, think I need a flag here!?)
Also warnings about defaulting to integer type are annoying is there a way to stop them?
You need to explicitly declare the language extension in each file like this
where
FOO
is either,ExplicitForall
which just let's you writeforall
,ScopedTypeVariables
which means that you can writeand have the explicit signature work as expected. Or
RankNTypes
which let's you write types of a higher rank likeIn this case it looks like you just want
ExplicitForall
.