我知道我可以从命令提示符执行以下操作:
$ runghc WC < quux.txt
如何在 WinGHCi 中执行此操作?我知道我必须先像这样加载文件:
Prelude> :load WC
但是然后呢?这不起作用:
*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'