packages feed

hgis-0.1.3.8: hgis.cabal

cabal-version: 1.18
name: hgis
version: 0.1.3.8
license: BSD3
license-file: LICENSE
copyright: Copyright: (c) 2016-2018 Vanessa McHale
maintainer: vamchale@gmail.com
author: Vanessa McHale
synopsis: Package and command-line for GIS with Haskell
description:
    Package containting functions to make graphs, read
    shapefiles, and compute areas/perimeters of
    geographic features.
category: Web
build-type: Simple
extra-source-files:
    cabal.project.local
    stack.yaml
extra-doc-files: README.md
                 docs/manual.tex
                 src/depends/readshp/LICENSE

source-repository head
    type: git
    location: https://github.com/vmchale/hgis

flag llvm-fast
    description:
        Enable build with llvm backend
    default: False

flag development
    description:
        Turn on '-Werror'
    default: False
    manual: True

library
    exposed-modules:
        GIS.Exe.Opt
        GIS.Exe.OptCairo
        GIS.Math.Spherical
        GIS.Graphics.PlotPNG
        GIS.Graphics.PlotSVG
        GIS.Hylo
        GIS.Math.Projections
    hs-source-dirs: src src/depends/readshp
    other-modules:
        GIS.Math.Utils
        GIS.Utils
        GIS.Graphics.Plot
        GIS.Graphics.Types
        GIS.Types
        GIS.Exe.Parser
        Geometry.Shapefile
        Geometry.Shapefile.MergeShpDbf
        Geometry.Shapefile.ReadDbf
        Geometry.Shapefile.ReadShp
        Geometry.Shapefile.Types
        Geometry.Shapefile.Internal
    default-language: Haskell2010
    default-extensions: DeriveGeneric OverloadedStrings
    ghc-options: -Wall
    build-depends:
        base >=4.7 && <5,
        optparse-applicative -any,
        Chart -any,
        Chart-cairo -any,
        Chart-diagrams -any,
        lens -any,
        composition-prelude >=1.1.0.1,
        ansi-wl-pprint -any,
        directory -any,
        colour -any,
        data-default -any,
        binary -any,
        bytestring -any,
        data-binary-ieee754 -any,
        filepath -any,
        monad-loops -any
    
    if flag(development)
        ghc-options: -Werror
    
    if impl(ghc >=8.0)
        ghc-options: -Wincomplete-uni-patterns -Wincomplete-record-updates

executable hgis
    main-is: MainPng.hs
    hs-source-dirs: app
    default-language: Haskell2010
    ghc-options: -Wall
    build-depends:
        base >4.9 && <5,
        hgis -any
    
    if flag(llvm-fast)
        ghc-options: -threaded -rtsopts -with-rtsopts=-N -fllvm -optlo-O3
    else
        ghc-options: -threaded -rtsopts -with-rtsopts=-N
    
    if flag(development)
        ghc-options: -Werror
    
    if impl(ghc >=8.0)
        ghc-options: -Wincomplete-uni-patterns -Wincomplete-record-updates

test-suite hgis-test
    type: exitcode-stdio-1.0
    main-is: Spec.hs
    hs-source-dirs: test
    default-language: Haskell2010
    ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall
    build-depends:
        base -any,
        hgis -any,
        hspec -any
    
    if flag(development)
        ghc-options: -Werror
    
    if impl(ghc >=8.0)
        ghc-options: -Wincomplete-uni-patterns -Wincomplete-record-updates