File: microstache.cabal

package info (click to toggle)
haskell-microstache 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 172 kB
  • sloc: haskell: 971; makefile: 3
file content (120 lines) | stat: -rw-r--r-- 3,030 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
cabal-version:      2.2
name:               microstache
version:            1.0.3
license:            BSD-3-Clause
license-file:       LICENSE
author:
  Mark Karpov <markkarpov@openmailbox.org>, Oleg Grenrus <oleg.grenrus@iki.fi>

maintainer:         Oleg Grenrus<oleg.grenrus@iki.fi>
homepage:           https://github.com/haskellari/microstache
bug-reports:        https://github.com/haskellari/microstache/issues
category:           Text
synopsis:           Mustache templates for Haskell
build-type:         Simple
description:
  Mustache templates for Haskell.
  .
  Based on @stache@ library, which uses @megaparsec@.
  This library uses @parsec@, thus the name: @microstache@.

extra-source-files:
  CHANGELOG.md
  README.md
  specification/comments.json
  specification/delimiters.json
  specification/interpolation.json
  specification/inverted.json
  specification/partials.json
  specification/sections.json

tested-with:
  GHC ==8.6.5
   || ==8.8.4
   || ==8.10.7
   || ==9.0.2
   || ==9.2.8
   || ==9.4.8
   || ==9.6.5
   || ==9.8.2
   || ==9.10.1

source-repository head
  type:     git
  location: https://github.com/haskellari/microstache.git

library
  build-depends:
      aeson                 >=2.2.2.0  && <2.3
    , base                  >=4.12.0.0 && <4.21
    , containers            >=0.6.0.1  && <0.8
    , deepseq               >=1.4.4.0  && <1.6
    , directory             >=1.3.3.0  && <1.4
    , filepath              >=1.4.2.1  && <1.6
    , parsec                >=3.1.13.0 && <3.2
    , text                  >=1.2.3.0  && <1.3  || >=2.0 && <2.2
    , transformers          >=0.5.6.2  && <0.7
    , unordered-containers  >=0.2.20   && <0.3
    , vector                >=0.13.1.0 && <0.14

  exposed-modules:
    Text.Microstache
    Text.Microstache.Compile
    Text.Microstache.Parser
    Text.Microstache.Render
    Text.Microstache.Type

  hs-source-dirs:   src
  ghc-options:      -Wall
  default-language: Haskell2010

test-suite spec
  main-is:          Spec.hs
  hs-source-dirs:   tests tasty-as-hspec
  type:             exitcode-stdio-1.0
  build-depends:
      aeson
    , base
    , containers
    , microstache
    , parsec
    , text

  -- tasty-as-hspec
  build-depends:
      base-orphans  >=0.8.7    && <0.10
    , tasty         >=1.4.0.1  && <1.6
    , tasty-hunit   >=0.10.0.3 && <0.11

  if !impl(ghc >=8.0)
    build-depends: semigroups

  other-modules:
    Test.Hspec
    Text.Microstache.ParserSpec
    Text.Microstache.RenderSpec
    Text.Microstache.TypeSpec

  default-language: Haskell2010

test-suite mustache-spec
  main-is:          Spec.hs
  hs-source-dirs:   mustache-spec tasty-as-hspec
  type:             exitcode-stdio-1.0
  build-depends:
      aeson
    , base
    , bytestring
    , containers
    , microstache
    , parsec
    , text

  -- tasty-as-hspec
  build-depends:
      base-orphans  >=0.8.7    && <0.10
    , tasty         >=1.4.0.1  && <1.6
    , tasty-hunit   >=0.10.0.3 && <0.11

  other-modules:    Test.Hspec
  default-language: Haskell2010