Is there an easy workaround (for example, telling GHCi to always use -XRebindableSyntax, which I will usually need?)
You can put a .ghci
file in the same directory as your source files. Now if you start ghci from that directory, the .ghci
file will be load and its content executed like the commands you type at the ghci prompt. In this case, you would put :set -XRebindableSyntax
in there.
I think this is better than putting :set -XRebindableSyntax
into the .ghci
in your home directory because you might have other Haskell projects in other directories that need different extensions.
For more ideas what to put into project-specific ghci files, see Neil Mitchell's blog post.