[Haskell-beginners] [Real World Haskell] Question

Lorenzo Bolla lbolla at gmail.com
Wed Aug 22 18:18:18 CEST 2012

Try with:

Prelude> :main


On Wed, Aug 22, 2012 at 5:15 PM, Yang
<register.battlenet.com.cn at gmail.com> wrote:
> Hi all,
>     In chapter 4 in Real World Haskell comes there the first example of
> system I/O, namely `interactWith`. According to author, the right way is to
> compile and run program in system shell, though I have loaded source in GHCi
> and can't figure out how to invoke `main` interactively.
>     Therefore the question is simply how can I call `main` that takes
> arguments in GHCi? Thanks.
> BTW: This is my first message to the group and if there is any restriction I
> violate in topics, I'd like to know. The example I mentioned can be found at
> the beginning of the web page followed by link
> http://book.realworldhaskell.org/read/functional-programming.html
> --
> Best Regards
> Yang Zhao
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners

More information about the Beginners mailing list