packages feed

newt-0.0.1.0: newt.cabal

name:                newt
version:             0.0.1.0
synopsis:            A trivially simple app to create things from simple templates.
description:         Instantiates text things from templates.
category:            Tools
license:             BSD3
License-file:        LICENSE
author:              Rogan Creswick
maintainer:          creswick@gmail.com
Cabal-Version:       >=1.8.0.6
build-type:          Simple

Extra-source-files:
                     tests/src/Integration.hs
                     tests/src/Main.hs
                     tests/src/ReplaceTests.hs
                     tests/testFiles/dirTemplates/cabalProject/<<<projName>>>.cabal
                     tests/testFiles/dirTemplates/cabalProject/LICENSE
                     tests/testFiles/dirTemplates/cabalProject/Setup.hs
                     tests/testFiles/dirTemplates/cabalProject/appsrc/Main.hs
                     tests/testFiles/dirTemplates/cabalProject/src/<<<projName>>>.hs
                     tests/testFiles/dirTemplates/cabalProject/tests/src/Main.hs
                     tests/testFiles/dirTemplates/template2/<<<projName>>>/in.cabal
                     tests/testFiles/simpleTest/alternate1.txt
                     tests/testFiles/simpleTest/in.cabal
                     tests/testFiles/simpleTest/in.cabal.oracle.1
                     tests/testFiles/simpleTest/in.cabal.oracle.2
                     tests/testFiles/simpleTest/simple1.txt

Flag tests
   Description:    Build the tests
   Default:        False


Library
   hs-source-dirs:   src
   Exposed-modules:  Newt.Newt,
                     Newt.Inputs,
                     Newt.Outputs,
                     Newt.Utilities

   Build-depends:    base       >= 4       && < 6,
                     filemanip  >= 0.3.5.2 && < 0.3.6,
                     mtl        >= 2.0.1.0 && < 2.0.2,
                     regex-base >= 0.93.2  && < 0.94,
                     regex-pcre >= 0.94.2  && < 0.95,
                     array      >= 0.3.0.0 && < 0.4.1,
                     Unixutils  >= 1.36    && < 1.37
   if impl(ghc < 7)
     Build-depends:
                     containers >= 0.3.0.0 && < 0.5,
                     directory  >= 1.0.1.1 && < 1.1.1,
                     process    >= 1.0.1.3 && < 1.0.2,
                     filepath   >= 1.1.0.0 && < 1.1.0.5
   else
     Build-depends:
                     containers >= 0.4.0.0 && < 0.5,
                     directory  >= 1.1.0.0 && < 1.1.1,
                     process    >= 1.0.1.5 && < 1.0.2,
                     filepath   >= 1.2.0.0 && < 1.2.1

   ghc-options:      -Wall


Executable newt
   Main-Is:          Main.hs
   hs-source-dirs:   appsrc

   Build-depends:    newt,
                     base       >= 4       && < 6,
                     mtl        >= 2.0.1.0 && < 2.0.2,
                     cmdargs    >= 0.6.9   && < 0.6.10

   if impl(ghc < 7)
     Build-depends:
                     containers >= 0.3.0.0 && < 0.5
   else
     Build-depends:
                     containers >= 0.4.0.0 && < 0.5


   ghc-options:      -Wall

Executable test-newt
   if !flag(tests)
      Buildable:              False

   Main-is:          Main.hs

   Hs-Source-Dirs:   tests/src

   Build-depends:    newt,
                     base       >= 4       && < 6,
                     HUnit                      >= 1.2.2   && < 1.2.3,
                     test-framework             >= 0.3.3   && < 0.4,
                     test-framework-quickcheck2 >= 0.2.9   && < 0.3,
                     test-framework-hunit       >= 0.2.6   && < 0.3,
                     QuickCheck                 >= 2.4.1.1 && < 2.4.2,
                     uuid                       >= 1.2.2   && < 1.2.3

   if impl(ghc < 7)
     Build-depends:
                     containers >= 0.3.0.0 && < 0.5,
                     directory  >= 1.0.1.1 && < 1.1.1,
                     process    >= 1.0.1.3 && < 1.0.2,
                     filepath   >= 1.1.0.0 && < 1.1.0.5
   else
     Build-depends:
                     containers >= 0.4.0.0 && < 0.5,
                     directory  >= 1.1.0.0 && < 1.1.1,
                     process    >= 1.0.1.5 && < 1.0.2,
                     filepath   >= 1.2.0.0 && < 1.2.1

   Other-modules:    Integration,
                     ReplaceTests

   GHC-Options: -Wall

source-repository head
  type:     git
  location: git://github.com/creswick/Newt.git