summaryrefslogtreecommitdiff
path: root/Haskell-book/18/Bind.hs
blob: daeaadab759e8a76f38eac82fb201de85575b5a3 (plain)
1
2
3
4
5
6
module Bind where

import Control.Monad

bind :: Monad m => (a -> m b) -> m a -> m b
bind f x = join $ fmap f x