haskell-time-range-0.1.0.0: Some useful wrappers and functions for building time ranges

Safe HaskellNone
LanguageHaskell2010

Data.Time.Range

Documentation

class AsDay p f s where Source #

Methods

_Day :: Optic' p f s Day Source #

Instances

(Choice p, Applicative f) => AsDay p f String Source # 

Methods

_Day :: Optic' * * p f String Day Source #

(Choice p, Applicative f) => AsDay p f (Integer, Int, Int) Source # 

Methods

_Day :: Optic' * * p f (Integer, Int, Int) Day Source #

bounds :: (Rewrapped s s, Rewrapped e e, Unwrapped s ~ Day, Unwrapped e ~ Day, Rewrapped hs hs, Rewrapped he he, Unwrapped hs ~ Natural, Unwrapped he ~ Natural) => s -> e -> hs -> he -> (LowerTimeBound, UpperTimeBound) Source #

wrappedRange :: (Rewrapped a a, Rewrapped b b, Rewrapped c c, Unwrapped a ~ t, Unwrapped b ~ t, Unwrapped c ~ t, Ord t) => (t -> c) -> (t -> t) -> a -> b -> NonEmpty c Source #

utcRangeHours :: (Rewrapped start start, Rewrapped end end, Unwrapped start ~ UTCTime, Unwrapped end ~ UTCTime) => start -> end -> NonEmpty UTCTime Source #