Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
Eq Minutes | |
Ord Minutes | |
Show Minutes | |
AsMinutes p f Minutes | |
(Choice p, Applicative f) => AsCoordinate p f (Double, (DegreesLongitude, Minutes, Seconds)) | |
(Choice p, Applicative f) => AsCoordinate p f ((DegreesLatitude, Minutes, Seconds), Double) | |
(Profunctor p, Functor f) => AsCoordinate p f ((DegreesLongitude, Minutes, Seconds), (DegreesLatitude, Minutes, Seconds)) | |
(Profunctor p, Functor f) => AsCoordinate p f ((DegreesLatitude, Minutes, Seconds), (DegreesLongitude, Minutes, Seconds)) | |
(Profunctor p, Functor f) => AsCoordinate p f ((DegreesLongitude, Minutes, Seconds), Latitude) | |
(Profunctor p, Functor f) => AsCoordinate p f (Latitude, (DegreesLongitude, Minutes, Seconds)) | |
(Profunctor p, Functor f) => AsCoordinate p f (Longitude, (DegreesLatitude, Minutes, Seconds)) | |
(Profunctor p, Functor f) => AsCoordinate p f ((DegreesLatitude, Minutes, Seconds), Longitude) | |
(Profunctor p, Functor f) => AsLongitude p f (DegreesLongitude, Minutes, Seconds) | An isomorphism on the triple of degrees longitude, minutes, seconds to a longitude.
|
(Profunctor p, Functor f) => AsLatitude p f (DegreesLatitude, Minutes, Seconds) | An isomorphism on the triple of degrees latitude, minutes, seconds to a latitude.
|
class AsMinutes p f s where Source
Nothing
(Choice p, Applicative f) => AsMinutes p f Int | A prism on minutes to an integer between 0 and 59 inclusive.
all (\m -> _Minutes # m == (n :: Int)) (n ^? _Minutes) |
AsMinutes p f Minutes | |
((~) (* -> * -> *) p (->), Functor f) => AsMinutes p f Longitude | |
((~) (* -> * -> *) p (->), Functor f) => AsMinutes p f Latitude |
remMinutes :: Int -> Minutes Source
Setting a value >= 60
will get that value (
.rem
60)
>>>
remMinutes 7
Minutes 7
>>>
remMinutes 0
Minutes 0
>>>
remMinutes 60
Minutes 0
>>>
remMinutes 1
Minutes 1
>>>
remMinutes 59
Minutes 59