Re: [Haskell-cafe] Win32 Open GL / Glut Applications

2007-09-23 Thread John Wicket
[EMAIL PROTECTED] wrote: Sven Panne wrote: On Friday 21 September 2007 20:19, Ronald Guida wrote: John Wicket wrote: yea, that is probably what I need. Can you post in a step-by-step way. Here is a set of instructions for what I had to do to get FreeGLUT working with GHCi [...]. Oh

[Haskell-cafe] Noob question and sequence of operations (print then do something else)

2007-09-23 Thread John Wicket
I am still in an imperative way of thinking. In this example here; how would I call putStrLn and then set the function with a value. Eg: aa :: String - IO () aa instr = do putStrLn abc putStrLn abc return 123 --- The error I am getting. Couldn't match expected type `()' against

Re: [Haskell-cafe] Noob question and sequence of operations (print then do something else)

2007-09-23 Thread John Wicket
`IO ()' In the expression: putStrLn abc In a 'do' expression: putStrLn abc In the expression: do putStrLn abc putStrLn abc return Az On 9/24/07, Sam Hughes [EMAIL PROTECTED] wrote: John Wicket wrote: I am still in an imperative way of thinking. In this example