second package:basement

Map covariantly over the second argument.
secondbimap id

Examples

>>> second (+1) ('j', 3)
('j',4)
>>> second (+1) (Right 3)
Right 4
Haskell type representing the C suseconds_t type. (The concrete types of Foreign.C.Types#platform are platform-specific.)
Haskell type representing the C useconds_t type. (The concrete types of Foreign.C.Types#platform are platform-specific.)