cinch-base / 0.1.0Data/Option.cinch
Declaration source.
This sample listing contains the declarations shown in the API reference. Package implementations will appear here when real package data is connected.
module Data.Option where3
-- Either a present value or its absence.4
data Option a5
-- None :: Option a6
-- Some :: a -> Option a8
-- Apply a function to a present value. None remains None.9
map :: forall a b. (a -> b) -> Option a -> Option b