As discussed in #35, I exported the data constructors so we can easily access the underlying data.
To retrieve the coordinates of a point as double as requested in #36, we could do something like:
pointToDoubleArray :: Geo Point -> [Double]
pointToDoubleArray (GeoPoint (Point (Coordinate2 x y))) = [x,y]
pointToDoubleArray (GeoPoint (Point (Coordinate3 x y z))) = [x,y,z]
However, I am a little confused about the current geos.cabal. The latest version mentioned there is 0.4.0 whereas the newest version on Hackage is 0.4.1. Is there a specific reason why the latest cabal file was not committed?
As discussed in #35, I exported the data constructors so we can easily access the underlying data.
To retrieve the coordinates of a point as double as requested in #36, we could do something like:
However, I am a little confused about the current geos.cabal. The latest version mentioned there is 0.4.0 whereas the newest version on Hackage is 0.4.1. Is there a specific reason why the latest cabal file was not committed?