Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
mapLeft :: (t -> a) -> [Either t b] -> [Either a b] Source
This maps a function over a list, only applying it to Left
objects
mapRight :: (t -> b) -> [Either a t] -> [Either a b] Source
This maps a function over a list, only applying it to Right
objects
unsafeFromLeft :: Either a b -> a Source
This will throw an error if its input is Right