haskell-scfg

[MIRROR] Haskell library for scfg

git clone git://git.marius.pm/haskell-scfg.git

 1cabal-version:   3.0
 2name:            scfg
 3version:         1.0.0
 4synopsis:        SCFG parser for Haskell
 5description:
 6    A simple parser for SCFG (simple configuration format) files
 7
 8author:          Marius Lysakerrud
 9maintainer:      mail@marius.pm
10license:         MIT
11license-file:    LICENSE
12homepage:        https://git.sr.ht/~mariusl/haskell-scfg
13bug-reports:     https://lists.sr.ht/~mariusl/public-inbox
14category:        Data
15build-type:      Simple
16tested-with:     GHC ==9.8.2 || ==9.10.3
17extra-doc-files:
18    CHANGELOG.md
19    README.md
20
21common warnings
22    ghc-options: -Wall
23
24library
25    import:           warnings
26    exposed-modules:
27        Data.Scfg
28        Data.Scfg.Formatter
29        Data.Scfg.Types
30
31    other-modules:    Data.Scfg.Parser
32    build-depends:
33        , base        >=4.19.0.0 && <4.21
34        , megaparsec  >=9.7.0    && <9.8
35        , text        >=2.1.0    && <2.2
36
37    hs-source-dirs:   src
38    default-language: Haskell2010
39
40test-suite scfg-test
41    import:           warnings
42    default-language: Haskell2010
43    other-modules:
44        Data.Scfg
45        Data.Scfg.Formatter
46        Data.Scfg.Parser
47        Data.Scfg.Types
48
49    type:             exitcode-stdio-1.0
50    hs-source-dirs:   test src
51    main-is:          Test.hs
52    build-depends:
53        , base        >=4.19.0.0 && <4.21
54        , hspec       >=2.11.0   && <2.12
55        , megaparsec  >=9.7.0    && <9.8
56        , temporary   >=1.3      && <1.4
57        , text        >=2.1.0    && <2.2
58
59source-repository head
60    type:     git
61    location: https://git.sr.ht/~mariusl/haskell-scfg