Description
I would love it if I could have a persistent file called scratch.hs
that I keep in my ~/.emacs.d
that I can execute as a script. But deep inside the script logic it generates a fake name Main.hs
regardless of the file name. This unfortunately breaks the haskell-mode
's haskell-compile
jump-to-error support because the filenames don't match.
As a workaround, I call it Main.hs
, which is no biggy, but it'd be a pretty sweet workflow optimisation to be able to have a scratch.hs
file! We could even add support in haskell-mode
to generate / popularise this file. Possibly add special handling so it always gets compiled the correct way and perhaps even a special new-repl
launcher too.
It would also be really great for performance reasons to be able to short stop of generating the binaries. Often I just want to check for compilation.
// @typedrat I'm guessing you know the most about this than anybody 😄