instance Monad [] where {-# INLINE (>>=) #-} xs >>= f = [y | x <- xs, y <- f x] {-# INLINE (>>) #-} (>>) = (*>) {-# INLINE return #-} return x = [x] {-# INLINE fail #-} fail _ = []
Hi
Where is the definition of (>>=) for lists? I was trying to locate it
using Hoogle but no luck. :(
--
http://people.eisenbits.com/~stf/
http://www.eisenbits.com/
OpenPGP: 9EC2 5620 2355 B1DC 4A8F 8C79 0EC7 C214 E5AE 3B4E
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners