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

Maurí­cio briqueabraque at yahoo.com
Tue Nov 6 00:16:15 EST 2007


 >>> Hi,
 >>>
 >>> Is there a way to run 'ghc -e' taking input
 >>> from standard input? (...)

 >>It seems to me that you can use getContents,
 >>et. al., as you would from any other Haskell
 >>program: (...)

 > hm, which raises the question of exactly what
 > Maurício meant. (...)
 >

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, since I'll use it all the
time. Maybe I should learn how to write a small
shell script that in turn would call xargs ghc.

Maurício



More information about the Haskell-Cafe mailing list