sorry about the confusion, too much drinks.
I used the redefined . in the difination of <.>. it should really just be

  flip liftM

On Wed, Sep 10, 2008 at 9:14 PM, jinjing <[EMAIL PROTECTED]> wrote:
> I found that as I can do
>
>  xs.map(+1).sort
>
> by redefine . to be
>
>  a . f = f a
>  infixl 9 .
>
> I can also do
>
>  readFile "readme.markdown" <.> lines <.> length
>
> by making
>
>  a <.> b = a .liftM b
>  infixl 9 <.>
>
> Kinda annoying, but the option is there.
>
> - jinjing
>
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to