
3 Oct
2013
3 Oct
'13
11:28 a.m.
On 3 October 2013 10:57, Roman Cheplyaka
An interesting use case is my time-lens library. http://hackage.haskell.org/package/time-lens-0.3/docs/Data-Time-Lens.html
You can do things like
modL minutes (+5) (TimeOfDay 16 57 13) 17:02:13
But one has to be somewhat lenient about the lens laws here.
Relatedly the thyme package (really fast time implementation) provides lenses for all its data types: http://hackage.haskell.org/package/thyme