Brandon S. Allbery KF8NH wrote:
Some Haskell
programmers use fmap (because most Monads are also Functors), others use
liftM. Both have the same effect: given a monadic computation m a,
liftM f turns f into a function that operates on the enclosed a
instead of the entire m a.
That is,
On Jul 2, 2009, at 17:59 , wren ng thornton wrote:
Brandon S. Allbery KF8NH wrote:
Some Haskell programmers use fmap (because most Monads are also
Functors), others use liftM. Both have the same effect: given a
monadic computation m a, liftM f turns f into a function that
operates on the
I am somewhat new to haskell. It is amazing that I can actually write
a CGI program using Network.CGI without really being comfortable with
the Haskell type system. Especially when it involves monad
transformations.
So I decided that I better understand this. I looked at the Practical
Web
Your code examples are:
On Sat, Jun 27, 2009 at 6:07 PM, Edward Ing edward@gmail.com wrote:
saveFile n =
do cont - (liftM fromJust) $ getInputFPS file
let f = uploadDir ++ / ++ basename n
liftIO $ BS.writeFile f cont
return $ paragraph (Saved as +++
On Jun 27, 2009, at 20:07 , Edward Ing wrote:
saveFile n =
do cont - (liftM fromJust) $ getInputFPS file
let f = uploadDir ++ / ++ basename n
liftIO $ BS.writeFile f cont
return $ paragraph (Saved as +++ anchor ! [href f]
f +++ .)
saveFile n =
do cont