Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Eq Minutes Source | |
Ord Minutes Source | |
Show Minutes Source | |
AsMinutes p f Minutes Source | |
(Choice p, Applicative f) => AsCoordinate p f (Double, (DegreesLongitude, Minutes, Seconds)) Source | |
(Choice p, Applicative f) => AsCoordinate p f ((DegreesLatitude, Minutes, Seconds), Double) Source | |
(Profunctor p, Functor f) => AsCoordinate p f ((DegreesLongitude, Minutes, Seconds), (DegreesLatitude, Minutes, Seconds)) Source | |
(Profunctor p, Functor f) => AsCoordinate p f ((DegreesLatitude, Minutes, Seconds), (DegreesLongitude, Minutes, Seconds)) Source | |
(Profunctor p, Functor f) => AsCoordinate p f ((DegreesLongitude, Minutes, Seconds), Latitude) Source | |
(Profunctor p, Functor f) => AsCoordinate p f (Latitude, (DegreesLongitude, Minutes, Seconds)) Source | |
(Profunctor p, Functor f) => AsCoordinate p f (Longitude, (DegreesLatitude, Minutes, Seconds)) Source | |
(Profunctor p, Functor f) => AsCoordinate p f ((DegreesLatitude, Minutes, Seconds), Longitude) Source | |
(Profunctor p, Functor f) => AsLongitude p f (DegreesLongitude, Minutes, Seconds) Source | An isomorphism on the triple of degrees longitude, minutes, seconds to a longitude.
|
(Profunctor p, Functor f) => AsLatitude p f (DegreesLatitude, Minutes, Seconds) Source | 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 Source | A prism on minutes to an integer between 0 and 59 inclusive.
all (\m -> _Minutes # m == (n :: Int)) (n ^? _Minutes) |
AsMinutes p f Minutes Source | |
((~) (* -> * -> *) p (->), Functor f) => AsMinutes p f Longitude Source | |
((~) (* -> * -> *) p (->), Functor f) => AsMinutes p f Latitude Source | |
((~) (* -> * -> *) p (->), Applicative f) => AsMinutes p f Coordinate Source |
modMinutes :: Int -> Minutes Source
Setting a value within the range 0
and 60
using modulo arithmetic.
>>>
modMinutes 7
Minutes 7
>>>
modMinutes 0
Minutes 0
>>>
modMinutes 60
Minutes 0
>>>
modMinutes 1
Minutes 1
>>>
modMinutes 59
Minutes 59
>>>
modMinutes 61
Minutes 1
>>>
modMinutes (-1)
Minutes 59