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 |
Documentation
Graft a distinct top and bottom onto any type.
The Top
is identity for /\
and the absorbing element for \/
.
The Bottom
is the identity for \/
and and the absorbing element for /\
.
Two Middle
values join to top, unless they are equal.
Instances
Foldable Wide Source # | |
Defined in Algebra.Lattice.Wide fold :: Monoid m => Wide m -> m # foldMap :: Monoid m => (a -> m) -> Wide a -> m # foldMap' :: Monoid m => (a -> m) -> Wide a -> m # foldr :: (a -> b -> b) -> b -> Wide a -> b # foldr' :: (a -> b -> b) -> b -> Wide a -> b # foldl :: (b -> a -> b) -> b -> Wide a -> b # foldl' :: (b -> a -> b) -> b -> Wide a -> b # foldr1 :: (a -> a -> a) -> Wide a -> a # foldl1 :: (a -> a -> a) -> Wide a -> a # elem :: Eq a => a -> Wide a -> Bool # maximum :: Ord a => Wide a -> a # | |
Traversable Wide Source # | |
Applicative Wide Source # | |
Functor Wide Source # | |
Monad Wide Source # | |
Generic1 Wide Source # | |
Arbitrary a => Arbitrary (Wide a) Source # | |
CoArbitrary a => CoArbitrary (Wide a) Source # | |
Defined in Algebra.Lattice.Wide coarbitrary :: Wide a -> Gen b -> Gen b # | |
Function a => Function (Wide a) Source # | |
Data a => Data (Wide a) Source # | |
Defined in Algebra.Lattice.Wide gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Wide a -> c (Wide a) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Wide a) # toConstr :: Wide a -> Constr # dataTypeOf :: Wide a -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Wide a)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Wide a)) # gmapT :: (forall b. Data b => b -> b) -> Wide a -> Wide a # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Wide a -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Wide a -> r # gmapQ :: (forall d. Data d => d -> u) -> Wide a -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Wide a -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Wide a -> m (Wide a) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Wide a -> m (Wide a) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Wide a -> m (Wide a) # | |
Generic (Wide a) Source # | |
Read a => Read (Wide a) Source # | |
Show a => Show (Wide a) Source # | |
NFData a => NFData (Wide a) Source # | |
Defined in Algebra.Lattice.Wide | |
Eq a => Eq (Wide a) Source # | |
Ord a => Ord (Wide a) Source # | |
Hashable a => Hashable (Wide a) Source # | |
Defined in Algebra.Lattice.Wide | |
Eq a => BoundedJoinSemiLattice (Wide a) Source # | |
Defined in Algebra.Lattice.Wide | |
Eq a => BoundedMeetSemiLattice (Wide a) Source # | |
Defined in Algebra.Lattice.Wide | |
Eq a => Lattice (Wide a) Source # | |
Eq a => PartialOrd (Wide a) Source # | |
Finite a => Finite (Wide a) Source # | |
Defined in Algebra.Lattice.Wide | |
Universe a => Universe (Wide a) Source # | |
Defined in Algebra.Lattice.Wide | |
type Rep1 Wide Source # | |
Defined in Algebra.Lattice.Wide type Rep1 Wide = D1 ('MetaData "Wide" "Algebra.Lattice.Wide" "lattices-2.1-FTYhZPoI65oIdMkyt1I5F1" 'False) (C1 ('MetaCons "Top" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Middle" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) Par1) :+: C1 ('MetaCons "Bottom" 'PrefixI 'False) (U1 :: Type -> Type))) | |
type Rep (Wide a) Source # | |
Defined in Algebra.Lattice.Wide type Rep (Wide a) = D1 ('MetaData "Wide" "Algebra.Lattice.Wide" "lattices-2.1-FTYhZPoI65oIdMkyt1I5F1" 'False) (C1 ('MetaCons "Top" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Middle" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a)) :+: C1 ('MetaCons "Bottom" 'PrefixI 'False) (U1 :: Type -> Type))) |