packages feed

htoml-megaparsec-2.0.0.0: htoml-megaparsec.cabal

cabal-version: 2.0
name: htoml-megaparsec
version: 2.0.0.0
license: BSD3
license-file: LICENSE
copyright: (c) 2013-2016 Cies Breijs, 2017-2018 Vanessa McHale
maintainer: Vanessa McHale <vamchale@gmail.com>
author: Cies Breijs, Vanessa McHale
homepage: https://hub.darcs.net/vmchale/htoml-megaparsec
bug-reports: https://hub.darcs.net/vmchale/htoml-megaparsec/issues
synopsis: Parser for TOML files
description:
    TOML is an obvious and minimal format for config files.
    This package provides a TOML parser
    built with the Megaparsec.
category: Data, Text, Configuration, Language, TOML
build-type: Simple
extra-source-files:
    test/BurntSushi/fetch-toml-tests.sh
    test/BurntSushi/valid/*.toml
    test/BurntSushi/valid/*.json
    test/BurntSushi/invalid/*.toml
    benchmarks/example.toml
    benchmarks/repeated.toml
extra-doc-files: README.md
                 CHANGES.md

source-repository head
    type: darcs
    location: https://hub.darcs.net/vmchale/htoml-megaparsec

library
    exposed-modules:
        Text.Toml
    hs-source-dirs: src
    default-language: Haskell2010
    other-extensions: ConstraintKinds DeriveGeneric FlexibleContexts
                      OverloadedStrings RankNTypes GADTs MonoLocalBinds
    ghc-options: -Wall
    build-depends:
        base >=4.7 && <5,
        containers >=0.5,
        megaparsec >=6.0.0,
        htoml-internal -any,
        unordered-containers >=0.2,
        vector >=0.10,
        text >=1.0 && <2,
        mtl >=2.2,
        composition-prelude >=0.1.1.0,
        deepseq -any,
        time >=1.5.0
    
    if !impl(ghc >=7.10)
        build-depends:
            void -any
    
    if impl(ghc >=8.0)
        ghc-options: -Wincomplete-uni-patterns -Wincomplete-record-updates

library htoml-internal
    exposed-modules:
        Text.Toml.Parser
        Text.Toml.Types
    hs-source-dirs: internal
    other-modules:
        Text.Megaparsec.CharRW
    default-language: Haskell2010
    other-extensions: ConstraintKinds DeriveGeneric FlexibleContexts
                      OverloadedStrings RankNTypes GADTs MonoLocalBinds
    ghc-options: -Wall
    build-depends:
        base >=4.7 && <5,
        containers >=0.5,
        megaparsec >=6.0.0,
        unordered-containers >=0.2,
        vector >=0.10,
        text >=1.0 && <2,
        mtl >=2.2,
        composition-prelude >=0.1.1.0,
        deepseq -any,
        time >=1.5.0
    
    if !impl(ghc >=7.10)
        build-depends:
            void -any
    
    if impl(ghc >=8.0)
        ghc-options: -Wincomplete-uni-patterns -Wincomplete-record-updates

test-suite htoml-test
    type: exitcode-stdio-1.0
    main-is: Test.hs
    hs-source-dirs: test
    other-modules:
        BurntSushi
        JSON
        Text.Toml.Parser.Spec
        Text.TomlSpec
    default-language: Haskell2010
    ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
    build-depends:
        base >=4.9 && <5,
        megaparsec -any,
        containers -any,
        hspec -any,
        unordered-containers -any,
        vector -any,
        aeson -any,
        text -any,
        time -any,
        htoml-megaparsec -any,
        htoml-internal -any,
        bytestring -any,
        file-embed -any,
        tasty -any,
        tasty-hspec -any,
        tasty-hunit -any

benchmark benchmarks
    type: exitcode-stdio-1.0
    main-is: Benchmarks.hs
    hs-source-dirs: benchmarks .
    default-language: Haskell2010
    ghc-options: -Wall
    build-depends:
        base -any,
        htoml-megaparsec -any,
        htoml-internal -any,
        criterion -any,
        text -any