| Copyright | (C) Frank Staals |
|---|---|
| License | see the LICENSE file |
| Maintainer | Frank Staals |
| Safe Haskell | None |
| Language | GHC2021 |
HGeometry.Measured.Class
Description
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 Methods 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.
Minimal complete definition
Nothing
Methods
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 Methods insertMeasure :: a -> Report a -> Report a Source # | |
| CanInsert Report1 a Source # | |
Defined in HGeometry.Measured.Report Methods insertMeasure :: a -> Report1 a -> Report1 a Source # | |
| CanInsert ReportList a Source # | |
Defined in HGeometry.Measured.Report Methods insertMeasure :: a -> ReportList a -> ReportList a Source # | |
| CanInsert (Count :: Type -> Type) a Source # | |
Defined in HGeometry.Measured.Size Methods insertMeasure :: a -> Count a -> Count a Source # | |
class Measured f a => CanDelete (f :: Type -> Type) a where Source #
Things that can be deleted.
Methods
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 Methods deleteMeasure :: a -> ReportList a -> Maybe (ReportList a) Source # | |
| CanDelete (Count :: Type -> Type) a Source # | |
Defined in HGeometry.Measured.Size | |