Copyright | (c) NoviSci Inc 2020 |
---|---|
License | BSD3 |
Maintainer | bsaul@novisci.com |
Safe Haskell | Safe |
Language | Haskell2010 |
Synopsis
- newtype Feature d = Feature {}
- data MissingReason
- data FeatureDefinition f e a d
- defineEF :: Intervallic Interval a => MissingReason -> (Events a -> Maybe c) -> (c -> d) -> FeatureDefinition * e a d
- defineFEF :: Intervallic Interval a => MissingReason -> (e -> Events a -> d) -> FeatureDefinition * e a d
- defineFEF2 :: Intervallic Interval a => MissingReason -> (e -> Events a -> Feature d) -> FeatureDefinition * e a d
- defineFFF :: MissingReason -> MissingReason -> (f -> e -> d) -> FeatureDefinition f e * d
- applyEF :: FeatureDefinition * * a d -> Events a -> Feature d
- applyFEF :: FeatureDefinition * e a d -> Feature e -> Events a -> Feature d
- applyFFF :: FeatureDefinition f e * d -> Feature f -> Feature e -> Feature d
- featureR :: d -> Feature d
- featureL :: MissingReason -> Feature d
Types
A Feature
is a
, where Either
MissingReason
dd
can be any type
of data derivable from Events
.
Instances
Functor Feature Source # | |
Eq d => Eq (Feature d) Source # | |
Show d => Show (Feature d) Source # | |
Generic (Feature d) Source # | |
ToJSON d => ToJSON (Feature d) Source # | |
Defined in Hasklepias.Types.Feature.Aeson | |
type Rep (Feature d) Source # | |
Defined in Hasklepias.Types.Feature type Rep (Feature d) = D1 ('MetaData "Feature" "Hasklepias.Types.Feature" "hasklepias-0.4.4-inplace" 'True) (C1 ('MetaCons "Feature" 'PrefixI 'True) (S1 ('MetaSel ('Just "getFeature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Either MissingReason d)))) |
data MissingReason Source #
A Feature
may be missing for any number of reasons.
Instances
data FeatureDefinition f e a d Source #
A type to hold common feature definitions; i.e. functions that return features.
:: Intervallic Interval a | |
=> MissingReason | The reason if |
-> (Events a -> Maybe c) | A function that maps events to an some intermediary Maybe type.
In the case that this function returns |
-> (c -> d) | A function that transforms the intermediary data to the desired type. |
-> FeatureDefinition * e a d |
Define an EF
FeatureDefinition
:: Intervallic Interval a | |
=> MissingReason | |
-> (e -> Events a -> d) | A function that tranforms the data of a |
-> FeatureDefinition * e a d |
TODO
:: Intervallic Interval a | |
=> MissingReason | |
-> (e -> Events a -> Feature d) | A function that tranforms the data of a |
-> FeatureDefinition * e a d |
TODO
defineFFF :: MissingReason -> MissingReason -> (f -> e -> d) -> FeatureDefinition f e * d Source #
TODO
applyEF :: FeatureDefinition * * a d -> Events a -> Feature d Source #
Extract an EF
FeatureDefinition.
applyFEF :: FeatureDefinition * e a d -> Feature e -> Events a -> Feature d Source #
Extract a FEF
FeatureDefinition