lens-time-0.1.0.0: lens for Data.Time
Data.Time.Lens
class HasDate a whereSource
Methods
date :: Lens' a DaySource
Instances
dateLens :: (Integral b1, Functor f, Num b, HasDate a) => ((b1 -> Accessor b1 b1) -> (Integer, Int, Int) -> Accessor b1 (Integer, Int, Int)) -> (b -> Day -> Day) -> (b1 -> f b1) -> a -> f aSource
year :: HasDate a => Lens' a IntegerSource
month :: HasDate a => Lens' a IntSource
day :: HasDate a => Lens' a IntSource
class HasTime a whereSource
time :: Lens' a TimeOfDaySource
hour :: HasTime a => Lens' a IntSource
minutes :: HasTime a => Lens' a IntSource
seconds :: HasTime a => Lens' a PicoSource