On Mon, 9 Feb 2009, Edsko de Vries wrote:

Hi,

Is there a nice way to write

down :: Focus -> [Focus]
down p = concat [downPar p, downNew p, downTrans p]

down = concat . sequence [downPar, downNew, downTrans]

given the Reader like Monad instance of ((->) a).
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to