[web-devel] [yesod] how convert Content to String or Text
Dmitriy Nikitinskiy
nick at bel.ru
Wed Jul 6 11:18:45 CEST 2011
Hello All.
I have following code:
getMyRoute :: String -> Handler RepXml
getMyRoute r = liftM RepXml $ hamletToContent [hamlet|<node |]
getOtherRoute :: Handler ()
getOtherRoute = do
(RepXml mycontent) <- getMyRoute "something"
-- how write mycontent to file here?
-- let str = ???? or str <- ????
-- liftIO $ writeFile "myfile.xml" str
return ()
How convert Yesod.Content.Content to String or Text?
Thanks.
Dmitriy
More information about the web-devel
mailing list