packages feed

csg-0.1: csg.cabal

-- This file has been generated from package.yaml by hpack version 0.20.0.
--
-- see: https://github.com/sol/hpack
--
-- hash: f2c1fd60fb41426a33ebda6ab5c083364c788ebc2458967a297173ddb3acb0b0

name:           csg
version:        0.1
synopsis:       Analytical CSG (Constructive Solid Geometry) library
category:       Graphics
homepage:       https://github.com/dzhus/csg#readme
bug-reports:    https://github.com/dzhus/csg/issues
author:         Dmitry Dzhus
maintainer:     dima@dzhus.org
license:        BSD3
license-file:   LICENSE
build-type:     Simple
cabal-version:  >= 1.10

extra-source-files:
    CHANGELOG.md
    examples/cube.geo
    examples/reentry.geo
    README.md

source-repository head
  type: git
  location: https://github.com/dzhus/csg

flag triples
  description: Use triples of Doubles to represent vectors (slower with vector library arrays)
  manual: True
  default: False

library
  hs-source-dirs:
      src
  ghc-options: -Wall -Wcompat -O2
  build-depends:
      QuickCheck
    , attoparsec
    , base <5
    , bytestring
    , containers
    , simple-vec3 >=0.4
    , strict
    , transformers
  if flag(triples)
    cpp-options: -DWITH_TRIPLES
  exposed-modules:
      Data.CSG
      Data.CSG.Parser
  other-modules:
      Paths_csg
  default-language: Haskell2010

executable csg-raycaster
  main-is: raycaster.hs
  hs-source-dirs:
      exe
  ghc-options: -Wall -Wcompat -O2 -threaded -rtsopts "-with-rtsopts=-N"
  build-depends:
      QuickCheck
    , base <5
    , csg
    , gloss
    , gloss-raster
    , simple-vec3 >=0.4
    , strict
    , system-filepath
    , turtle
  other-modules:
      Paths_csg
  default-language: Haskell2010

test-suite csg-doctests
  type: exitcode-stdio-1.0
  main-is: doctest-driver.hs
  hs-source-dirs:
      tests
  ghc-options: -Wall -Wcompat -O2 -threaded
  build-depends:
      base <5
    , doctest
    , doctest-discover >=0.1.0.8
    , simple-vec3 >=0.4
  other-modules:
      Main
      Paths_csg
  default-language: Haskell2010

test-suite csg-tests
  type: exitcode-stdio-1.0
  main-is: Main.hs
  hs-source-dirs:
      tests
  ghc-options: -Wall -Wcompat -O2
  build-depends:
      base <5
    , bytestring
    , csg
    , simple-vec3 >=0.4
    , tasty
    , tasty-hunit
    , tasty-quickcheck
  other-modules:
      Paths_csg
  default-language: Haskell2010

benchmark csg-benchmark
  type: exitcode-stdio-1.0
  main-is: benchmark/Benchmark.hs
  ghc-options: -Wall -Wcompat -O2
  build-depends:
      base <5
    , criterion
    , csg
    , simple-vec3 >=0.4
    , strict
    , vector
  other-modules:
      Paths_csg
  default-language: Haskell2010