ioString :: String -> IO String
ioString s = return s
And I get an error saying that an IO String cannot be converted to a
Response. How do I get this to work?
thanks ...
-deech
Jake McArthur
unread,
Jun 16, 2009, 3:14:32 PM6/16/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to HA...@googlegroups.com
deech wrote: > returnString = methodM POST >> > return $ toResponse $ ioString "hello world" > > ioString :: String -> IO String > ioString s = return s > > And I get an error saying that an IO String cannot be converted to a > Response. How do I get this to work?
You can't convert an IO String to a Response, but you *can* convert a (String -> Response) to a (IO String -> IO Response):