Copyright | (c) NoviSci Inc 2020 |
---|---|
License | BSD3 |
Maintainer | bsaul@novisci.com |
Safe Haskell | Safe |
Language | Haskell2010 |
Synopsis
- class (Ord a, Show a) => Censorable a where
- parseIntervalCensor :: a -> a -> Either ParseIntervalError (MaybeCensored a)
- rightCensor :: a -> a -> MaybeCensored a
- leftCensor :: a -> a -> MaybeCensored a
- data MaybeCensored a where
- IntervalCensored :: a -> a -> MaybeCensored a
- RightCensored :: a -> MaybeCensored a
- LeftCensored :: a -> MaybeCensored a
- Uncensored :: a -> MaybeCensored a
- newtype ParseIntervalError = ParseIntervalError Text
Documentation
class (Ord a, Show a) => Censorable a where Source #
A class to censor data
Nothing
parseIntervalCensor :: a -> a -> Either ParseIntervalError (MaybeCensored a) Source #
rightCensor :: a -> a -> MaybeCensored a Source #
leftCensor :: a -> a -> MaybeCensored a Source #
Instances
Censorable Double Source # | |
Defined in Stype.Numeric parseIntervalCensor :: Double -> Double -> Either ParseIntervalError (MaybeCensored Double) Source # rightCensor :: Double -> Double -> MaybeCensored Double Source # leftCensor :: Double -> Double -> MaybeCensored Double Source # | |
(Ord a, Show a) => Censorable (EventTime a) Source # | |
Defined in Stype.Numeric parseIntervalCensor :: EventTime a -> EventTime a -> Either ParseIntervalError (MaybeCensored (EventTime a)) Source # rightCensor :: EventTime a -> EventTime a -> MaybeCensored (EventTime a) Source # leftCensor :: EventTime a -> EventTime a -> MaybeCensored (EventTime a) Source # |
data MaybeCensored a where Source #
Data for censored data
IntervalCensored :: a -> a -> MaybeCensored a | |
RightCensored :: a -> MaybeCensored a | |
LeftCensored :: a -> MaybeCensored a | |
Uncensored :: a -> MaybeCensored a |
Instances
newtype ParseIntervalError Source #
A type to hold a reason that interval fails to parse.
Instances
Eq ParseIntervalError Source # | |
Defined in Stype.Numeric.Censored (==) :: ParseIntervalError -> ParseIntervalError -> Bool # (/=) :: ParseIntervalError -> ParseIntervalError -> Bool # | |
Show ParseIntervalError Source # | |
Defined in Stype.Numeric.Censored showsPrec :: Int -> ParseIntervalError -> ShowS # show :: ParseIntervalError -> String # showList :: [ParseIntervalError] -> ShowS # |