| Safe Haskell | None |
|---|
Data.Geo.Coordinate.Seconds
Documentation
class HasSeconds t whereSource
Instances
nSeconds :: Prism' Double SecondsSource
A prism on seconds to a double between 0 inclusive and 60 exclusive.
>>>7 ^? nSecondsJust (Seconds 7.0000)
>>>0 ^? nSecondsJust (Seconds 0.0000)
>>>59 ^? nSecondsJust (Seconds 59.0000)
>>>59.99 ^? nSecondsJust (Seconds 59.9900)
>>>60 ^? nSecondsNothing
all (\m -> nSeconds # m == n) (n ^? nSeconds)