packages feed

scfg-1.0.0: scfg.cabal

cabal-version:   3.0
name:            scfg
version:         1.0.0
synopsis:        SCFG parser for Haskell
description:
    A simple parser for SCFG (simple configuration format) files

author:          Marius Lysakerrud
maintainer:      mail@marius.pm
license:         MIT
license-file:    LICENSE
homepage:        https://git.sr.ht/~mariusl/haskell-scfg
bug-reports:     https://lists.sr.ht/~mariusl/public-inbox
category:        Data
build-type:      Simple
tested-with:     GHC ==9.8.2 || ==9.10.3
extra-doc-files:
    CHANGELOG.md
    README.md

common warnings
    ghc-options: -Wall

library
    import:           warnings
    exposed-modules:
        Data.Scfg
        Data.Scfg.Formatter
        Data.Scfg.Types

    other-modules:    Data.Scfg.Parser
    build-depends:
        , base        >=4.19.0.0 && <4.21
        , megaparsec  >=9.7.0    && <9.8
        , text        >=2.1.0    && <2.2

    hs-source-dirs:   src
    default-language: Haskell2010

test-suite scfg-test
    import:           warnings
    default-language: Haskell2010
    other-modules:
        Data.Scfg
        Data.Scfg.Formatter
        Data.Scfg.Parser
        Data.Scfg.Types

    type:             exitcode-stdio-1.0
    hs-source-dirs:   test src
    main-is:          Test.hs
    build-depends:
        , base        >=4.19.0.0 && <4.21
        , hspec       >=2.11.0   && <2.12
        , megaparsec  >=9.7.0    && <9.8
        , temporary   >=1.3      && <1.4
        , text        >=2.1.0    && <2.2

source-repository head
    type:     git
    location: https://git.sr.ht/~mariusl/haskell-scfg