Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- type Lifted = Either ()
- type Lowered a = Either a ()
- data Extended a
- extended :: b -> b -> (a -> b) -> Extended a -> b
- liftMaybe :: (a -> Bool) -> (a -> b) -> a -> Maybe b
- liftEitherL :: (a -> Bool) -> (a -> b) -> a -> Lifted b
- liftEitherR :: (a -> Bool) -> (a -> b) -> a -> Lowered b
- liftExtended :: (a -> Bool) -> (a -> Bool) -> (a -> b) -> a -> Extended b
Lattice extensions
Add a bottom and top to a lattice.
The top is the absorbing element for the join, and the bottom is the absorbing element for the meet.
Instances
Lattice Extensions
liftEitherL :: (a -> Bool) -> (a -> b) -> a -> Lifted b Source #
liftEitherR :: (a -> Bool) -> (a -> b) -> a -> Lowered b Source #