« Another DSL embedded in Haskell - a partial make replacement in less than 10 lines | Main | Financial vs Real investment »

September 09, 2007

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8341e003353ef00e55072546d8833

Listed below are links to weblogs that reference More on Haskell DSL:

Comments

wren ng thornton

You can use liftM (from Control.Monad) and mapM to simplify things.

mapM f xs == sequence (map f xs)
liftM f mx == mx >>= return . f

The comments to this entry are closed.

Ads




Tip Jar



  • Amazon Honor System Click Here to Pay Learn More
Blog powered by Typepad

Twitter Updates

    follow me on Twitter