hasklepias-0.17.0: embedded DSL for defining epidemiologic cohorts
Copyright(c) NoviSci Inc 2020
LicenseBSD3
Maintainerbsaul@novisci.com
Safe HaskellSafe
LanguageHaskell2010

Stype.Numeric.Continuous

Description

 
Synopsis

Documentation

data Continuous a Source #

Data type for continuous numbers.

Constructors

NegContInf 
Cont a 
ContInf 

Instances

Instances details
Functor Continuous Source # 
Instance details

Defined in Stype.Numeric.Continuous

Methods

fmap :: (a -> b) -> Continuous a -> Continuous b #

(<$) :: a -> Continuous b -> Continuous a #

Applicative Continuous Source # 
Instance details

Defined in Stype.Numeric.Continuous

Methods

pure :: a -> Continuous a #

(<*>) :: Continuous (a -> b) -> Continuous a -> Continuous b #

liftA2 :: (a -> b -> c) -> Continuous a -> Continuous b -> Continuous c #

(*>) :: Continuous a -> Continuous b -> Continuous b #

(<*) :: Continuous a -> Continuous b -> Continuous a #

Eq a => Eq (Continuous a) Source # 
Instance details

Defined in Stype.Numeric.Continuous

Methods

(==) :: Continuous a -> Continuous a -> Bool #

(/=) :: Continuous a -> Continuous a -> Bool #

Num a => Num (Continuous a) Source # 
Instance details

Defined in Stype.Numeric.Continuous

Ord a => Ord (Continuous a) Source # 
Instance details

Defined in Stype.Numeric.Continuous

Show a => Show (Continuous a) Source # 
Instance details

Defined in Stype.Numeric.Continuous

Generic (Continuous a) Source # 
Instance details

Defined in Stype.Numeric.Continuous

Associated Types

type Rep (Continuous a) :: Type -> Type #

Methods

from :: Continuous a -> Rep (Continuous a) x #

to :: Rep (Continuous a) x -> Continuous a #

ToJSON a => ToJSON (Continuous a) Source # 
Instance details

Defined in Stype.Aeson

type Rep (Continuous a) Source # 
Instance details

Defined in Stype.Numeric.Continuous

type Rep (Continuous a) = D1 ('MetaData "Continuous" "Stype.Numeric.Continuous" "hasklepias-0.17.0-inplace" 'False) (C1 ('MetaCons "NegContInf" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Cont" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a)) :+: C1 ('MetaCons "ContInf" 'PrefixI 'False) (U1 :: Type -> Type)))

data NonnegContinuous a Source #

Data type for nonnegative continuous numbers.

Constructors

NonNegCont a 
NonNegContInf 

Instances

Instances details
Eq a => Eq (NonnegContinuous a) Source # 
Instance details

Defined in Stype.Numeric.Continuous

Ord a => Ord (NonnegContinuous a) Source # 
Instance details

Defined in Stype.Numeric.Continuous

Show a => Show (NonnegContinuous a) Source # 
Instance details

Defined in Stype.Numeric.Continuous

Generic (NonnegContinuous a) Source # 
Instance details

Defined in Stype.Numeric.Continuous

Associated Types

type Rep (NonnegContinuous a) :: Type -> Type #

ToJSON a => ToJSON (NonnegContinuous a) Source # 
Instance details

Defined in Stype.Aeson

type Rep (NonnegContinuous a) Source # 
Instance details

Defined in Stype.Numeric.Continuous

type Rep (NonnegContinuous a) = D1 ('MetaData "NonnegContinuous" "Stype.Numeric.Continuous" "hasklepias-0.17.0-inplace" 'False) (C1 ('MetaCons "NonNegCont" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a)) :+: C1 ('MetaCons "NonNegContInf" 'PrefixI 'False) (U1 :: Type -> Type))

newtype EventTime a Source #

Data type for event times.

Constructors

EventTime 

Instances

Instances details
Eq a => Eq (EventTime a) Source # 
Instance details

Defined in Stype.Numeric.Continuous

Methods

(==) :: EventTime a -> EventTime a -> Bool #

(/=) :: EventTime a -> EventTime a -> Bool #

Ord a => Ord (EventTime a) Source # 
Instance details

Defined in Stype.Numeric.Continuous

Show a => Show (EventTime a) Source # 
Instance details

Defined in Stype.Numeric.Continuous

Generic (EventTime a) Source # 
Instance details

Defined in Stype.Numeric.Continuous

Associated Types

type Rep (EventTime a) :: Type -> Type #

Methods

from :: EventTime a -> Rep (EventTime a) x #

to :: Rep (EventTime a) x -> EventTime a #

ToJSON a => ToJSON (EventTime a) Source # 
Instance details

Defined in Stype.Aeson

(Ord a, Show a) => Censorable (EventTime a) Source # 
Instance details

Defined in Stype.Numeric

type Rep (EventTime a) Source # 
Instance details

Defined in Stype.Numeric.Continuous

type Rep (EventTime a) = D1 ('MetaData "EventTime" "Stype.Numeric.Continuous" "hasklepias-0.17.0-inplace" 'True) (C1 ('MetaCons "EventTime" 'PrefixI 'True) (S1 ('MetaSel ('Just "getEventTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonnegContinuous a))))

mkEventTime :: Maybe a -> EventTime a Source #

Create an event time from a Maybe.