packages feed

htoml-megaparsec-2.1.0.4: htoml-megaparsec.cabal

cabal-version:      2.0
name:               htoml-megaparsec
version:            2.1.0.4
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 DeriveAnyClass

    ghc-options:      -Wall
    build-depends:
        base >=4.8 && <5,
        megaparsec >=6.0.0,
        htoml-internal,
        text >=1.0 && <2,
        mtl >=2.2,
        composition-prelude >=0.1.1.0

    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.0,
        containers >=0.5,
        megaparsec >=6.0.0,
        unordered-containers >=0.2,
        vector >=0.10,
        text >=1.0 && <2,
        mtl >=2.2,
        deepseq,
        time >=1.5.0

    if !impl(ghc >=7.10)
        build-depends: void

    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

    default-language: Haskell2010
    ghc-options:      -Wall -threaded -rtsopts -with-rtsopts=-N
    build-depends:
        base >=4.9 && <5,
        megaparsec,
        containers,
        unordered-containers,
        vector,
        aeson,
        text,
        time,
        htoml-megaparsec,
        htoml-internal,
        bytestring,
        file-embed,
        tasty,
        tasty-hspec,
        tasty-hunit

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