name:                persistent-spatial
version:             0.1.0.0
synopsis:            Database agnostic, spatially indexed type for geographic points.
description:         Defines type for storing geographic coordinates that can be spatially indexed by any database which supports Word64.
                     This inxeding is implemented using a normal integer index on points repersented using a Morton Z-Order curve.
                     Geographic regions are transformed into a covering set of tiles (contigious ranges) which can be used in a single query.
homepage:            https://github.com/george-steel/persistent-spatial#readme
license:             MIT
license-file:        LICENSE
author:              George Steel
maintainer:          george.steel@gmail.com
copyright:           2019 Satsuma Labs
category:            Database, Geography
build-type:          Simple
cabal-version:       >=1.10
extra-source-files:  README.md
                   , CHANGELOG.md

library
  hs-source-dirs:      src
  ghc-options:         -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
  exposed-modules:     Data.Morton
                       Data.LatLong
  build-depends:       base >= 4.7 && < 5
                     , integer-logarithms
                     , aeson
                     , lens
                     , http-api-data
                     , text
                     , persistent
  default-language:    Haskell2010


test-suite tests
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  ghc-options:         -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -Wno-unused-imports
  main-is:             Spec.hs
  build-depends:       persistent-spatial
                     , base >= 4.7 && < 5
                     , aeson
                     , http-api-data
                     , text
                     , persistent
                     , hspec
                     , QuickCheck
  default-language:    Haskell2010



source-repository head
  type:     git
  location: https://github.com/george-steel/persistent-spatial