packages feed

cube-0.2.0: cube.cabal

name:                cube
version:             0.2.0
synopsis:            Cubic DSL for 3D printing
description:         Cube is DSL for 3D printing.
                     .
                     This indents to make original blocks and prototypes for hobby.
                     .
                     This DSL is based on mathematical algebra.
                     .
                     Cube is the same as Quaternion.
                     .
                     Block is set of Cube. It allows boolean operations(and, subtruct and convolution).

license:             BSD3
license-file:        LICENSE
author:              Junji Hashimoto
maintainer:          junji.hashimoto@gmail.com
-- copyright:           
category:            Language
build-type:          Simple
-- extra-source-files:  
cabal-version:       >=1.10

bug-reports:         https://github.com/junjihashimoto/cube/issues

extra-source-files:
  ChangeLog.md
  README.md

source-repository head
  type:           git
  location:       https://github.com/junjihashimoto/cube.git

flag sample
  description: Build sample programs
  default: False

library
  exposed-modules:     Language.Cube
  -- other-modules:       
  -- other-extensions:    
  build-depends:       base >=4 && <5
                     , STL
                     , cereal
                     , bytestring >= 0.10.2
                     , containers
  -- hs-source-dirs:      
  default-language:    Haskell2010
  ghc-options:       -Wall

executable house
  if flag(sample)
    buildable: True
  else
    buildable: False
  ghc-options:       -Wall
  build-depends:       base >=4 && <5
                     , cube
                     , STL
                     , cereal
                     , bytestring
                     , containers
                     , hspec
  hs-source-dirs:    sample
  main-is:           house.hs
  Extensions:        DeriveDataTypeable


test-suite test
  type:              exitcode-stdio-1.0
  main-is:           test.hs
  hs-source-dirs:    tests,dist/build/autogen
  ghc-options:       -Wall

  build-depends:       base >=4 && <5
                     , cube
                     , STL
                     , cereal
                     , bytestring
                     , containers
                     , hspec
  Default-Language:   Haskell2010