Re: [Haskell-beginners] How can I print the outcome with using main.

testParse returns an IO action. show expects an argument that is in Show. You will need to bind the result of testParse to a name and ensure that LogMessage is in Show.

Has the course covered `do` notation?
On Tue, Feb 24, 2015 at 9:16 AM, Roelof Wobben
Joel Williamson schreef op 24-2-2015 om 15:10:
testParse returns an IO action. show expects an argument that is in Show. You will need to bind the result of testParse to a name and ensure that LogMessage is in Show.
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
oke, and how do I do this ?
Roelof
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
participants (2)
-
Joel Williamson
-
Roelof Wobben