shithub: MicroHs

ref: cc577d232d1f8c942e52eab59f1e99dae3964d8f
dir: /lib/Control/Arrow.hs/

View raw version
module Control.Arrow(module Control.Arrow) where
import Prelude()              -- do not import Prelude

first :: forall a b c . (a -> c) -> (a, b) -> (c, b)
first f (a, b) = (f a, b)

second :: forall a b c . (b -> c) -> (a, b) -> (a, c)
second f (a, b) = (a, f b)