Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 2
    I'd recommend to read a monad tutorial. There are many in the web. IO String vs String is one of the classic "common issues" in Haskell. You are trying to do pretty advanced stuff (Happstack) which involves monads (and possibly monad transformers). Grasping monads will not provide the immediate solution to your specific problems, but will tell you that certain approaches like trying to convert IO String to String can not work (in a sense, a main design feature of the IO monad is precisely to prevent such conversion). Commented Feb 16, 2018 at 9:45
  • 1