[Haskell-cafe] binary operator modifiers

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Mon Oct 29 03:39:43 EDT 2007


On Oct 29, 2007, at 3:36 , Tim Newsham wrote:

> or go through the trouble of defining a bunch of binops
>
>    f <+> g = liftM2 (+) f g
>    n +>  g = return n <+> g
>    f <+  n = f <+> return n
>    read' = liftM read

This looks a lot like Control.Applicative to me.

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH




More information about the Haskell-Cafe mailing list