[Haskell-cafe] Input redirection in WinGHCi

Paul Reiners paul.reiners at gmail.com
Wed Jul 27 20:56:07 CEST 2011


I know I can do the following from a command prompt:

$ runghc WC < quux.txt

How do I do this in WinGHCi? I know I have to first load the file like this:

Prelude> :load WC

But then what? This doesn't work:

*Main> WC < quux.txt

<interactive>:1:1: Not in scope: data constructor `WC'

<interactive>:1:6: Not in scope: `quux'

<interactive>:1:11: Not in scope: `txt'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110727/e2fbce25/attachment.htm>


More information about the Haskell-Cafe mailing list