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

2007-11-06 Thread Maurí­cio
>> 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 w

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

2007-11-05 Thread Ketil Malde
Maurí­cio <[EMAIL PROTECTED]> 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 n

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

2007-11-05 Thread Brandon S. Allbery KF8NH
On Nov 6, 2007, at 0:48 , Maurí cio wrote: Brandon S. Allbery KF8NH escreveu: On Nov 6, 2007, at 0:16 , Maurí cio wrote: 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

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

2007-11-05 Thread Maurí­cio
Brandon S. Allbery KF8NH escreveu: On Nov 6, 2007, at 0:16 , Maurí cio wrote: 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 lear

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

2007-11-05 Thread Brandon S. Allbery KF8NH
On Nov 6, 2007, at 0:16 , Maurí cio wrote: 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

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

2007-11-05 Thread Maurí­cio
>>> 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 wa