
6 Nov
2007
6 Nov
'07
3:46 p.m.
Actually, what I want is to select a region of text from emacs and get back the result of that evaluated as haskell code. So, I need something that is fast to type
M-| xargs ghc -e
almost works - but ghc -e evaluates only a single argument, so you need to enclose the region with quotes (and escape any quotes inside it). A bit of elisp could probably do it fairly easily.
Cool! I tried: M-| xargs -0 ghc -e and it worked well in all examples I tried. Thanks for your tips, Maurício