Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 472 Bytes

Unsafe.md

File metadata and controls

21 lines (13 loc) · 472 Bytes

Module Data.Either.Unsafe

fromLeft

fromLeft :: forall a b. Either a b -> a

A partial function that extracts the value from the Left data constructor. Passing a Right to fromLeft will throw an error at runtime.

fromRight

fromRight :: forall a b. Either a b -> b

A partial function that extracts the value from the Right data constructor. Passing a Left to fromRight will throw an error at runtime.