the "interact" function and Hugs/ghci on Windows ...

Hello, I have a Haskell script that contains several functions that are implemented in terms on "interact". When I do a "function application", Hugs/ghci is waiting for input from stdin. How do one denote EOF from stdin, so that the function evaluation can continue and do the IO () action , ie.. write to stdout? Regards, Vasili

On Nov 15, 2007 6:25 PM, Galchin Vasili
Hello,
I have a Haskell script that contains several functions that are implemented in terms on "interact". When I do a "function application", Hugs/ghci is waiting for input from stdin. How do one denote EOF from stdin, so that the function evaluation can continue and do the IO () action , ie.. write to stdout?
Usually CTRL-D or CTRL-Z. Justin

Hi
The released version of WinHugs does not support Ctrl+Z or Ctrl+D, but
the development builds do.
If you download:
http://haskell.org/hoogle/other/winhugs-interact-fixes-2006-oct-25.zip
and replace the WinHugs.exe with this new one then you should get that
functionality.
Thanks
Neil
On 11/16/07, Justin Bailey
On Nov 15, 2007 6:25 PM, Galchin Vasili
wrote: Hello,
I have a Haskell script that contains several functions that are implemented in terms on "interact". When I do a "function application", Hugs/ghci is waiting for input from stdin. How do one denote EOF from stdin, so that the function evaluation can continue and do the IO () action , ie.. write to stdout?
Usually CTRL-D or CTRL-Z.
Justin _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Hello Neil, Friday, November 16, 2007, 3:07:57 PM, you wrote:
The released version of WinHugs does not support Ctrl+Z or Ctrl+D, but the development builds do.
btw, are you plan to release hugs version compatible with ghc 6.8? -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com

Hi Bulat,
The released version of WinHugs does not support Ctrl+Z or Ctrl+D, but the development builds do.
btw, are you plan to release hugs version compatible with ghc 6.8?
That would make sense, and I suspect Ross will want to (he's in charge of Hugs stuff). I am super-busy until after the end of the month, but will look into things then. Thanks Neil
participants (4)
-
Bulat Ziganshin
-
Galchin Vasili
-
Justin Bailey
-
Neil Mitchell