packages feed

madlang-1.1.2.0: madlang.cabal

name: madlang
version: 1.1.2.0
cabal-version: >=1.10
build-type: Simple
license: BSD3
license-file: LICENSE
copyright: Copyright: (c) 2016 Vanessa McHale
maintainer: tmchale@wisc.edu
stability: experimental
homepage: https://github.com/vmchale/madlang#readme
synopsis: Randomized templating language DSL
description:
    Please see README.md
category: Web
author: Vanessa McHale
extra-source-files:
    README.md
    test/templates/*.mad
    test/templates/err/*.mad
    stack.yaml

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

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

library
    exposed-modules:
        Text.Madlibs
    build-depends:
        base >=4.7 && <5,
        megaparsec >=5.2.0 && <5.3,
        text >=1.2.2.1 && <1.3,
        optparse-generic >=1.1.4 && <1.2,
        mwc-random >=0.13.5.0 && <0.14,
        lens >=4.15.1 && <4.16,
        mtl >=2.2.1 && <2.3,
        ansi-wl-pprint >=0.6.7.3 && <0.7,
        gitrev >=1.2.0 && <1.3
    default-language: Haskell2010
    default-extensions: OverloadedStrings DeriveGeneric DeriveFunctor
                        DeriveAnyClass
    hs-source-dirs: src
    other-modules:
        Text.Madlibs.Ana.ParseUtils
        Text.Madlibs.Cata.Run
        Text.Madlibs.Ana.Parse
        Text.Madlibs.Internal.Types
        Text.Madlibs.Internal.Utils
        Text.Madlibs.Cata.SemErr
        Text.Madlibs.Exec.Main

executable madlang
    
    if flag(llvm-fast)
        ghc-options: -threaded -rtsopts -with-rtsopts=-N -fllvm -optlo-O3 -O3
    else
        ghc-options: -threaded -rtsopts -with-rtsopts=-N
    main-is: Main.hs
    build-depends:
        base >=4.9.1.0 && <4.10,
        madlang >=1.1.2.0 && <1.2
    default-language: Haskell2010
    hs-source-dirs: app

test-suite madlang-test
    type: exitcode-stdio-1.0
    main-is: Spec.hs
    build-depends:
        base >=4.9.1.0 && <4.10,
        madlang >=1.1.2.0 && <1.2,
        hspec >=2.4.2 && <2.5,
        megaparsec >=5.2.0 && <5.3,
        text >=1.2.2.1 && <1.3,
        mtl >=2.2.1 && <2.3,
        hspec-megaparsec >=0.3.1 && <0.4
    default-language: Haskell2010
    hs-source-dirs: test
    ghc-options: -threaded -rtsopts -with-rtsopts=-N