| Copyright | (C) 2010-2015 Maximilian Bolingbroke 2015-2019 Oleg Grenrus |
|---|---|
| License | BSD-3-Clause (see the file LICENSE) |
| Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Algebra.Lattice.Levitated
Description
Synopsis
- data Levitated a
- retractLevitated :: (BoundedMeetSemiLattice a, BoundedJoinSemiLattice a) => Levitated a -> a
- foldLevitated :: b -> (a -> b) -> b -> Levitated a -> b
Documentation
Graft a distinct top and bottom onto an otherwise unbounded lattice. The top is the absorbing element for the join, and the bottom is the absorbing element for the meet.
Instances
retractLevitated :: (BoundedMeetSemiLattice a, BoundedJoinSemiLattice a) => Levitated a -> a Source #
Interpret using the Levitated aBoundedLattice of a.
foldLevitated :: b -> (a -> b) -> b -> Levitated a -> b Source #
Fold Levitated.