Copyright | (c) Donnacha Oisín Kidney 2021 |
---|---|
Maintainer | mail@doisinkidney.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
A Monus
for discrete distances.
Documentation
A very simple Monus
, based on the addition Monoid
on Natural
numbers.
This represents discrete distances.
Instances
Enum Dist Source # | |
Eq Dist Source # | |
Integral Dist Source # | |
Data Dist Source # | |
Defined in Data.Monus.Dist gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Dist -> c Dist # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Dist # dataTypeOf :: Dist -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Dist) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Dist) # gmapT :: (forall b. Data b => b -> b) -> Dist -> Dist # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Dist -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Dist -> r # gmapQ :: (forall d. Data d => d -> u) -> Dist -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Dist -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Dist -> m Dist # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Dist -> m Dist # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Dist -> m Dist # | |
Num Dist Source # | |
Ord Dist Source # | |
Read Dist Source # | |
Real Dist Source # | |
Defined in Data.Monus.Dist toRational :: Dist -> Rational # | |
Show Dist Source # | |
Ix Dist Source # | |
Generic Dist Source # | |
Semigroup Dist Source # | |
Monoid Dist Source # | |
Arbitrary Dist Source # | |
Bits Dist Source # | |
Defined in Data.Monus.Dist (.&.) :: Dist -> Dist -> Dist # (.|.) :: Dist -> Dist -> Dist # complement :: Dist -> Dist # shift :: Dist -> Int -> Dist # rotate :: Dist -> Int -> Dist # setBit :: Dist -> Int -> Dist # clearBit :: Dist -> Int -> Dist # complementBit :: Dist -> Int -> Dist # testBit :: Dist -> Int -> Bool # bitSizeMaybe :: Dist -> Maybe Int # shiftL :: Dist -> Int -> Dist # unsafeShiftL :: Dist -> Int -> Dist # shiftR :: Dist -> Int -> Dist # unsafeShiftR :: Dist -> Int -> Dist # rotateL :: Dist -> Int -> Dist # | |
NFData Dist Source # | |
Defined in Data.Monus.Dist | |
Monus Dist Source # | |
type Rep Dist Source # | |
Defined in Data.Monus.Dist |