Copyright | (C) Frank Staals |
---|---|
License | see the LICENSE file |
Maintainer | Frank Staals |
Safe Haskell | None |
Language | GHC2021 |
Documentation
class Measured (f :: Type -> Type) a where Source #
Things that can be measured.
Instances
Measured Report a Source # | |
Defined in HGeometry.Measured.Report | |
Measured Report1 a Source # | |
Defined in HGeometry.Measured.Report | |
Measured ReportList a Source # | |
Defined in HGeometry.Measured.Report measure :: a -> ReportList a Source # | |
Measured (Count :: Type -> Type) a Source # | |
Defined in HGeometry.Measured.Size |
class Measured f a => CanInsert (f :: Type -> Type) a where Source #
Things that can be inserted.
Nothing
insertMeasure :: a -> f a -> f a Source #
Delete an element form the associated structure
default insertMeasure :: Semigroup (f a) => a -> f a -> f a Source #
Instances
CanInsert Report a Source # | |
Defined in HGeometry.Measured.Report insertMeasure :: a -> Report a -> Report a Source # | |
CanInsert Report1 a Source # | |
Defined in HGeometry.Measured.Report insertMeasure :: a -> Report1 a -> Report1 a Source # | |
CanInsert ReportList a Source # | |
Defined in HGeometry.Measured.Report insertMeasure :: a -> ReportList a -> ReportList a Source # | |
CanInsert (Count :: Type -> Type) a Source # | |
Defined in HGeometry.Measured.Size insertMeasure :: a -> Count a -> Count a Source # |
class Measured f a => CanDelete (f :: Type -> Type) a where Source #
Things that can be deleted.
deleteMeasure :: a -> f a -> Maybe (f a) Source #
Delete the element from the structure. Returns a Maybe since the structure may be empty after deletion (and that may not be representable by f).
Instances
Eq a => CanDelete ReportList a Source # | |
Defined in HGeometry.Measured.Report deleteMeasure :: a -> ReportList a -> Maybe (ReportList a) Source # | |
CanDelete (Count :: Type -> Type) a Source # | |
Defined in HGeometry.Measured.Size |