Safe Haskell | None |
---|---|
Language | Haskell2010 |
A series with a start value and consecutive next vaules.
- data Series a b
- _Next :: forall a b b. Prism (Series a b) (Series a b) b b
- _Start :: forall a b a. Prism (Series a b) (Series a b) a a
- type Series' a = Series a a
- class AsSeries s a b | s -> a, s -> b where
- class SetSeriesStart s (GetSeriesStart s) ~ s => AsSeriesStart s where
- type GetSeriesStart s
- type SetSeriesStart s t
- class SetSeriesNext s (GetSeriesNext s) ~ s => AsSeriesNext s where
- type GetSeriesNext s
- type SetSeriesNext s t
Documentation
class AsSeries s a b | s -> a, s -> b where Source #
A class of types with any kind start and next semantics, not
necessarily provided by Series
.
seriesStart' :: Prism' s a Source #
A simple Prim
to extract a start value
seriesNext' :: Prism' s b Source #
A simple Prim
to extract a next value
class SetSeriesStart s (GetSeriesStart s) ~ s => AsSeriesStart s where Source #
A type class for types that might have a start value.
type GetSeriesStart s Source #
type SetSeriesStart s t Source #
seriesStart :: Prism s (SetSeriesStart s n) (GetSeriesStart s) n Source #
A Prism
for start values
AsSeriesStart (Either a b) Source # | |
AsSeriesStart (Series a b) Source # | |
class SetSeriesNext s (GetSeriesNext s) ~ s => AsSeriesNext s where Source #
A type class for types that might have a next value.
type GetSeriesNext s Source #
type SetSeriesNext s t Source #
seriesNext :: Prism s (SetSeriesNext s n) (GetSeriesNext s) n Source #
A Prism
for the next values
AsSeriesNext (Either a b) Source # | |
AsSeriesNext (Series a b) Source # | |