Copyright | (C) Frank Staals |
---|---|
License | see the LICENSE file |
Maintainer | Frank Staals |
Safe Haskell | None |
Language | GHC2021 |
HGeometry.Measured.Report
Description
Synopsis
- newtype Report a where
- newtype Report1 a = Report1 (BinLeafTree (Const () a) a)
- newtype ReportList a = ReportList [a]
Documentation
Report is a type to be used for reporting/collecting all results of a query.
The result is internally represented as a binary tree, so that we can guarantee O(1) time and space (<>).
Instances
Type to represent reporting elements. The result is represented as a binary tree so that we can support O(1) time and space (<>)
Constructors
Report1 (BinLeafTree (Const () a) a) |
Instances
Foldable1 Report1 Source # | |
Defined in HGeometry.Measured.Report Methods fold1 :: Semigroup m => Report1 m -> m # foldMap1 :: Semigroup m => (a -> m) -> Report1 a -> m # foldMap1' :: Semigroup m => (a -> m) -> Report1 a -> m # toNonEmpty :: Report1 a -> NonEmpty a # maximum :: Ord a => Report1 a -> a # minimum :: Ord a => Report1 a -> a # foldrMap1 :: (a -> b) -> (a -> b -> b) -> Report1 a -> b # foldlMap1' :: (a -> b) -> (b -> a -> b) -> Report1 a -> b # foldlMap1 :: (a -> b) -> (b -> a -> b) -> Report1 a -> b # foldrMap1' :: (a -> b) -> (a -> b -> b) -> Report1 a -> b # | |
Functor Report1 Source # | |
Foldable Report1 Source # | |
Defined in HGeometry.Measured.Report Methods fold :: Monoid m => Report1 m -> m # foldMap :: Monoid m => (a -> m) -> Report1 a -> m # foldMap' :: Monoid m => (a -> m) -> Report1 a -> m # foldr :: (a -> b -> b) -> b -> Report1 a -> b # foldr' :: (a -> b -> b) -> b -> Report1 a -> b # foldl :: (b -> a -> b) -> b -> Report1 a -> b # foldl' :: (b -> a -> b) -> b -> Report1 a -> b # foldr1 :: (a -> a -> a) -> Report1 a -> a # foldl1 :: (a -> a -> a) -> Report1 a -> a # elem :: Eq a => a -> Report1 a -> Bool # maximum :: Ord a => Report1 a -> a # minimum :: Ord a => Report1 a -> a # | |
Traversable Report1 Source # | |
Traversable1 Report1 Source # | |
CanInsert Report1 a Source # | |
Defined in HGeometry.Measured.Report Methods insertMeasure :: a -> Report1 a -> Report1 a Source # | |
Measured Report1 a Source # | |
Defined in HGeometry.Measured.Report | |
Semigroup (Report1 a) Source # | |
Show a => Show (Report1 a) Source # | |
Eq a => Eq (Report1 a) Source # | |
Ord a => Ord (Report1 a) Source # | |
newtype ReportList a Source #
Report is a type to be used for reporting/collecting all results of a query. The result is directly represented as a list.
Constructors
ReportList [a] |