[Haskell-cafe] Re: ghc -e with standard input

Ketil Malde ketil+haskell at ii.uib.no
Tue Nov 6 02:54:11 EST 2007


Maurí­cio <briqueabraque at yahoo.com> writes:

> 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.

-k
-- 
If I haven't seen further, it is by standing in the footprints of giants


More information about the Haskell-Cafe mailing list