shithub: MicroHs

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

View raw version
module Control.Arrow(module Control.Arrow) where

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)