Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data StartDate
- data EndDate
- data DayInRange
- data StartHour
- data EndHour
- data Hour
- data LowerTimeBound
- data UpperTimeBound
- data Ranges = Ranges {}
- class HasRanges c where
Documentation
General purpose newtype
wrappers for some commonly used Data.Time
types.
Helps to ensure you don't get your range ends mixed up, as well as providing
some convenience when you only need to refer to particular levels of granularity
in the time range.
Initial need of this library was only at the day and hour level, if there is a need more granular times can be added.
data DayInRange Source #
Eq DayInRange Source # | |
Show DayInRange Source # | |
Generic DayInRange Source # | |
Wrapped DayInRange Source # | |
(~) * DayInRange t0 => Rewrapped DayInRange t0 Source # | |
type Rep DayInRange Source # | |
type Unwrapped DayInRange Source # | |
data LowerTimeBound Source #
Eq LowerTimeBound Source # | |
Show LowerTimeBound Source # | |
Generic LowerTimeBound Source # | |
Wrapped LowerTimeBound Source # | |
(~) * LowerTimeBound t0 => Rewrapped LowerTimeBound t0 Source # | |
type Rep LowerTimeBound Source # | |
type Unwrapped LowerTimeBound Source # | |
data UpperTimeBound Source #
Eq UpperTimeBound Source # | |
Show UpperTimeBound Source # | |
Generic UpperTimeBound Source # | |
Wrapped UpperTimeBound Source # | |
(~) * UpperTimeBound t0 => Rewrapped UpperTimeBound t0 Source # | |
type Rep UpperTimeBound Source # | |
type Unwrapped UpperTimeBound Source # | |
class HasRanges c where Source #
ranges :: Lens' c Ranges Source #
rangesDaysInRange :: Lens' c (NonEmpty DayInRange) Source #
rangesLowerBound :: Lens' c LowerTimeBound Source #