coordinate-0.1.2: A representation of latitude and longitude

Safe HaskellNone
LanguageHaskell2010

Data.Geodetic.LL

Synopsis

Documentation

data LL Source #

Constructors

LL 

Fields

Instances

Eq LL Source # 

Methods

(==) :: LL -> LL -> Bool #

(/=) :: LL -> LL -> Bool #

Ord LL Source # 

Methods

compare :: LL -> LL -> Ordering #

(<) :: LL -> LL -> Bool #

(<=) :: LL -> LL -> Bool #

(>) :: LL -> LL -> Bool #

(>=) :: LL -> LL -> Bool #

max :: LL -> LL -> LL #

min :: LL -> LL -> LL #

Show LL Source # 

Methods

showsPrec :: Int -> LL -> ShowS #

show :: LL -> String #

showList :: [LL] -> ShowS #

HasDoubles LL Source # 
HasLL LL Source # 

class HasLL c where Source #

Minimal complete definition

lL

degrees :: Iso' (Double, Double) LL Source #

>>> ((27.34, 152.15) ^. degrees)
LL {_lat = 0.47717301749524965, _lon = 2.6555184569093724}
>>> (degrees # LL 0.47717 2.65552)
(27.33982711025749,152.15008841258037)

(<◦>) :: Double -> Double -> LL Source #

>>> 27.34 <◦> 152.15
LL {_lat = 0.47717301749524965, _lon = 2.6555184569093724}
>>> 61.94 <◦> (-152.15)
LL {_lat = 1.0810569386852877, _lon = -2.6555184569093724}