packages feed

hasklepias 0.6.0 → 0.6.1

raw patch · 7 files changed

+10/−10 lines, 7 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Hasklepias.Types.Feature: instance (GHC.Show.Show b, GHC.Classes.Eq b, GHC.Classes.Eq d) => GHC.Classes.Eq (Hasklepias.Types.Feature.Feature b d)

Files

ChangeLog.md view
@@ -1,5 +1,9 @@ # Changelog for hasklepias +## 0.6.1++* Adds `derving Eq` to `Feature` type.+ ## 0.6.0  * Adds `PolyKinds` extension to `Feature` module to enable poly-kind inputs to `FeatureDefinition`s. Adds a related `Defineable` typeclass with `define` and `eval` functions as a common interface for defining new definitions and evaluating them.
examples/ExampleFeatures1.hs view
@@ -8,7 +8,6 @@  {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE FlexibleContexts #-}-{-# LANGUAGE MonoLocalBinds #-} {-# LANGUAGE NoImplicitPrelude #-}  module ExampleFeatures1(@@ -107,11 +106,11 @@    )    where f i x = makePairedFilter enclose i (`hasConcepts` cnpts) x -duckHxDef :: (Intervallic Interval a) =>+duckHxDef :: (Ord a) =>           FeatureDefinition (FeatureData (Interval a), Events a) (Bool, Maybe (Interval a)) duckHxDef = makeHxDef ["wasBitByDuck", "wasStruckByDuck"] -macawHxDef :: (Intervallic Interval a) =>+macawHxDef :: (Ord a) =>           FeatureDefinition (FeatureData (Interval a), Events a) (Bool, Maybe (Interval a)) macawHxDef = makeHxDef ["wasBitByMacaw", "wasStruckByMacaw"] @@ -166,7 +165,7 @@ --   and time from start of follow up --   This needs to be generalized as Nothing could either indicate they didn't  --   discontinue or that they simply got no antibiotics records.-so :: (Intervallic Interval a)=> ComparativePredicateOf1 (Interval a)+so :: Ord a => ComparativePredicateOf1 (Interval a) so = unionPredicates [startedBy, overlappedBy]  discontinuationDef :: (IntervalSizeable a b) =>
examples/ExampleFeatures2.hs view
@@ -8,7 +8,6 @@  {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE FlexibleContexts #-}-{-# LANGUAGE MonoLocalBinds #-} {-# LANGUAGE NoImplicitPrelude #-} module ExampleFeatures2(     exampleFeatures2Spec
examples/ExampleFeatures3.hs view
@@ -8,7 +8,6 @@  {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE FlexibleContexts #-}-{-# LANGUAGE MonoLocalBinds #-} {-# LANGUAGE NoImplicitPrelude #-}  module ExampleFeatures3(
hasklepias.cabal view
@@ -1,6 +1,6 @@ cabal-version:  2.2 name:           hasklepias-version:        0.6.0+version:        0.6.1 description:    Please see the README on GitHub at <https://github.com/novisci/asclepias#readme> homepage:       https://github.com/novisci/asclepias/#readme bug-reports:    https://github.com/novisci/asclepias/issues
src/Hasklepias/Types/Feature.hs view
@@ -67,7 +67,7 @@         getName :: Text       , getAttr :: b       , getData :: FeatureData d-      }+      } deriving (Eq)  {- | 'FeatureData' is @'Either' 'MissingReason' d@, where @d@ can be any type       of data derivable from 'Hasklepias.Event.Events'.
test/Hasklepias/Types/Feature/AesonSpec.hs view
@@ -1,6 +1,5 @@ {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE FlexibleContexts #-}-{-# LANGUAGE MonoLocalBinds #-} module Hasklepias.Types.Feature.AesonSpec (spec) where  import IntervalAlgebra@@ -17,7 +16,7 @@ ex1 :: Events Int ex1 = [event (beginerval 10 0) (context $ packConcepts ["enrollment"])] -index:: (Intervallic Interval a) =>+index:: (Ord a) =>      Events a   -> FeatureData (Interval a) index es =