[Haskell-cafe] IO Help

2008-05-08 Thread Mark Wallsgrove
Hey, I am studying Haskell as a unit at University. I find the concept and design idea's of Haskell interesting but I am finding my self struggling to understand the relationship between the normal state and IO state of Haskell. This is my situation: I have created 12 functions for a program

Re: [Haskell-cafe] IO Help

2008-05-08 Thread Mark Wallsgrove
Thank you very much for your fast response! Ok, that is now changed, but everything else in my program is expecting Catalogue without IO. Is there a way to change IO Catalogue into Catalogue? Henning Thielemann wrote: On Thu, 8 May 2008, Mark Wallsgrove wrote: Problem now is reading

Re: [Haskell-cafe] IO Help

2008-05-08 Thread Mark Wallsgrove
May 2008, Mark Wallsgrove wrote: Thank you very much for your fast response! Ok, that is now changed, but everything else in my program is expecting Catalogue without IO. Is there a way to change IO Catalogue into Catalogue? Btw. there was a nice article precisely about the issue How to get

Re: [Haskell-cafe] IO Help

2008-05-08 Thread Mark Wallsgrove
Thank you all for your help, you have been invaluable Thomas Davie wrote: On 8 May 2008, at 16:31, Mark Wallsgrove wrote: Was there? I have been google'ing that problem for ages.. Just one more thing. I have to make a menu system where the user chooses what functionality they want. Because