packages feed

haiji-0.3.2.0: haiji.cabal

-- Initial haiji.cabal generated by cabal init.  For further documentation,
--  see http://haskell.org/cabal/users-guide/

name:                haiji
version:             0.3.2.0
synopsis:            A typed template engine, subset of jinja2
description:         Haiji is a template engine which is subset of jinja2.
                     This is designed to free from the unintended rendering result
                     by strictly typed variable interpolation.
license:             BSD3
license-file:        LICENSE
author:              Noriyuki OHKAWA <n.ohkawa@gmail.com>
maintainer:          Noriyuki OHKAWA <n.ohkawa@gmail.com>
copyright:           Copyright (c) 2014-2019, Noriyuki OHKAWA
category:            Text
build-type:          Simple
extra-source-files:  example.py
                     example.tmpl
                     content.tmpl
                     test/HTML_escape.tmpl
                     test/arith.tmpl
                     test/child.tmpl
                     test/comment.tmpl
                     test/comparison.tmpl
                     test/condition.tmpl
                     test/empty.tmpl
                     test/filter.tmpl
                     test/foreach.tmpl
                     test/foreach_else_block.tmpl
                     test/include.tmpl
                     test/included_0LF.tmpl
                     test/included_1LF.tmpl
                     test/included_2LF.tmpl
                     test/lf1.tmpl
                     test/lf2.tmpl
                     test/line_with_newline.tmpl
                     test/line_without_newline.tmpl
                     test/logic.tmpl
                     test/loop_variables.tmpl
                     test/many_variables.tmpl
                     test/parent.tmpl
                     test/range.tmpl
                     test/raw.tmpl
                     test/set.tmpl
                     test/string.tmpl
                     test/variables.tmpl
                     test/whitespace_control.tmpl
cabal-version:       >=1.10

source-repository head
  type:                git
  location:            https://github.com/notogawa/haiji.git

library
  exposed-modules:     Text.Haiji
                       Text.Haiji.Runtime
  other-modules:       Text.Haiji.Parse
                       Text.Haiji.TH
                       Text.Haiji.Types
                       Text.Haiji.Dictionary
                       Text.Haiji.Syntax
                       Text.Haiji.Syntax.AST
                       Text.Haiji.Syntax.Identifier
                       Text.Haiji.Syntax.Filter
                       Text.Haiji.Syntax.Expression
                       Text.Haiji.Syntax.Literal
                       Text.Haiji.Syntax.Literal.String
  build-depends:       base >=4.7 && <5
                     , text
                     , attoparsec >=0.10
                     , template-haskell >=2.8
                     , tagged >=0.2
                     , aeson
                     , transformers
                     , mtl >=1.1
                     , vector
                     , unordered-containers
                     , scientific
                     , data-default
                     , unordered-containers
  hs-source-dirs:      src
  ghc-options:         -Wall
  default-language:    Haskell2010

test-suite doctests
  type:                exitcode-stdio-1.0
  main-is:             doctests.hs
  build-depends:       base
                     , doctest
                     , filepath
  hs-source-dirs:      test
  ghc-options:         -Wall -threaded
  default-language:    Haskell2010

test-suite tests
  type:                exitcode-stdio-1.0
  main-is:             tests.hs
  build-depends:       base
                     , aeson
                     , haiji
                     , tasty
                     , tasty-th
                     , tasty-hunit
                     , text
                     , process-extras
                     , data-default
  hs-source-dirs:      test
  ghc-options:         -Wall -threaded
  default-language:    Haskell2010