[Haskell-cafe] Re: Newbie: Project: Missionary and Cannibal [Contd].

Henk-Jan van Tuyl hjgtuyl at chello.nl
Wed Jan 17 02:22:22 EST 2007

On Wed, 17 Jan 2007 05:35:59 +0100, <thapaps at gmail.com> wrote:

> I watched the video presentation from Edsge W. Dijkstra. It is very  
> helpful.

I made a typo in my previous e-mail: His first name is Edsger

> I am trying to call a function and print a message.

> moveEndR :: (IO ()->a)
> moveEndR = putStrLn"END OF Solution"    <<< === THIS IS INCORRECT.

The type signature is wrong, you can find the type of the function with  
Hugs and GHCi:

Prelude> :t putStrLn"END OF Solution"
putStrLn"END OF Solution" :: IO ()

Met vriendelijke groet,
Henk-Jan van Tuyl


More information about the Haskell-Cafe mailing list