On Thu, 20 Dec 2012, Miguel Negrao wrote:

Writing long functions or expressions in emacs to be run in ghci is a bit difficult because you can’t use the normal indentation rules (at least I haven’t figured out how), so one possibility would be to just write those functions in a .hs file and load the file to ghci, but every time one does that the previous bindings are destroyed and loose access to the server that we booted, and any resources on it, so that doesn’t work for interaction with a sc server via hsc3-server. Does anyone have any tips about this ?

Instead of indentation you might break big expressions into small expressions and local functions using 'let'. Would that help? Nonetheless, you lose what you wrote if you leave GHCi. (If you are lucky some lines are stored if you re-enter GHCi and can be retrieved with cursor-up.)
_______________________________________________
haskell-art mailing list
[email protected]
http://lists.lurk.org/mailman/listinfo/haskell-art

Reply via email to