hgeos 0.1.0.0 → 0.1.0.1
raw patch · 4 files changed
+32/−6 lines, 4 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Data.Geolocation.GEOS.Imports: GEOSContextHandle_t :: (Ptr GEOSContextHandle_t) -> GEOSContextHandle_t
- Data.Geolocation.GEOS.Imports: GEOSGeometryPtr :: (Ptr GEOSGeometryPtr) -> GEOSGeometryPtr
- Data.Geolocation.GEOS.Imports: GEOSWKTReaderPtr :: (Ptr GEOSWKTReaderPtr) -> GEOSWKTReaderPtr
- Data.Geolocation.GEOS.Imports: GEOSWKTWriterPtr :: (Ptr GEOSWKTWriterPtr) -> GEOSWKTWriterPtr
- Data.Geolocation.GEOS.Imports: c_getErrorMessage :: IO CString
- Data.Geolocation.GEOS.Imports: c_getNoticeMessage :: IO CString
- Data.Geolocation.GEOS.Imports: newtype GEOSContextHandle_t
- Data.Geolocation.GEOS.Imports: newtype GEOSGeometryPtr
- Data.Geolocation.GEOS.Imports: newtype GEOSWKTReaderPtr
- Data.Geolocation.GEOS.Imports: newtype GEOSWKTWriterPtr
+ Data.Geolocation.GEOS.Imports: data GEOSContextHandle_t
+ Data.Geolocation.GEOS.Imports: data GEOSGeometryPtr
+ Data.Geolocation.GEOS.Imports: data GEOSWKTReaderPtr
+ Data.Geolocation.GEOS.Imports: data GEOSWKTWriterPtr
Files
- hgeos.cabal +2/−1
- src/lib/Data/Geolocation/GEOS.hs +4/−4
- src/lib/Data/Geolocation/GEOS/Imports.hs +18/−1
- src/lib/helpers.h +8/−0
hgeos.cabal view
@@ -1,5 +1,5 @@ name: hgeos-version: 0.1.0.0+version: 0.1.0.1 synopsis: Haskell bindings to GEOS C API description: Please see README.md homepage: https://github.com/rcook/hgeos#readme@@ -22,6 +22,7 @@ build-depends: base >= 4.7 && < 5 extra-libraries: geos_c c-sources: src/lib/helpers.c+ , src/lib/helpers.h includes: src/lib/helpers.h cc-options: -std=c99 -pthread exposed-modules: Data.Geolocation.GEOS
src/lib/Data/Geolocation/GEOS.hs view
@@ -16,10 +16,10 @@ {-# LANGUAGE RecordWildCards #-} module Data.Geolocation.GEOS- ( Context()- , Geometry()- , Reader()- , Writer()+ ( Context ()+ , Geometry ()+ , Reader ()+ , Writer () , intersection , mkReader , mkWriter
src/lib/Data/Geolocation/GEOS/Imports.hs view
@@ -15,7 +15,24 @@ For the high-level API, see "Data.Geolocation.GEOS". -} -module Data.Geolocation.GEOS.Imports where+module Data.Geolocation.GEOS.Imports+ ( GEOSContextHandle_t ()+ , GEOSGeometryPtr ()+ , GEOSWKTReaderPtr ()+ , GEOSWKTWriterPtr ()+ , c_GEOSFree_r_CChar+ , c_GEOSGeom_destroy_r+ , c_GEOSIntersection_r+ , c_GEOSWKTReader_create_r+ , c_GEOSWKTReader_destroy_r+ , c_GEOSWKTReader_read_r+ , c_GEOSWKTWriter_create_r+ , c_GEOSWKTWriter_destroy_r+ , c_GEOSWKTWriter_write_r+ , c_GEOSversion+ , c_initializeGEOSWithHandlers+ , c_uninitializeGEOS+ ) where import Foreign.C import Foreign.Ptr
+ src/lib/helpers.h view
@@ -0,0 +1,8 @@+#pragma once++#include "geos_c.h"++GEOSContextHandle_t initializeGEOSWithHandlers();+void uninitializeGEOS(GEOSContextHandle_t handle);+const char* getNoticeMessage();+const char* getErrorMessage();