packages feed

grammatical-parsers-0.4.1.2: grammatical-parsers.cabal

name:                grammatical-parsers
version:             0.4.1.2
synopsis:            parsers that combine into grammars
description:
  /Gram/matical-/pa/rsers, or Grampa for short, is a library of parser types whose values are meant to be assigned
  to grammar record fields. All parser types support the same set of parser combinators, but have different semantics
  and performance characteristics.

homepage:            https://github.com/blamario/grampa/tree/master/grammatical-parsers
bug-reports:         https://github.com/blamario/grampa/issues
license:             BSD3
license-file:        LICENSE
author:              Mario Blažević
maintainer:          Mario Blažević <blamario@protonmail.com>
copyright:           (c) 2017 Mario Blažević
category:            Text, Parsing
build-type:          Custom
cabal-version:       >=1.10
extra-source-files:  README.md, CHANGELOG.md
source-repository head
  type:              git
  location:          https://github.com/blamario/grampa
custom-setup
 setup-depends:
   base >= 4 && <5,
   Cabal,
   cabal-doctest >= 1 && <1.1
 
library
  hs-source-dirs:      src
  exposed-modules:     Text.Grampa,
                       Text.Grampa.Combinators,
                       Text.Grampa.PEG.Backtrack, Text.Grampa.PEG.Packrat,
                       Text.Grampa.ContextFree.Continued, Text.Grampa.ContextFree.Parallel,
                       Text.Grampa.ContextFree.Memoizing, Text.Grampa.ContextFree.SortedMemoizing,
                       Text.Grampa.ContextFree.LeftRecursive
  other-modules:       Text.Grampa.Class, Text.Grampa.Internal,
                       Text.Grampa.PEG.Backtrack.Measured,
                       Text.Grampa.PEG.Continued, Text.Grampa.PEG.Continued.Measured,
                       Text.Grampa.ContextFree.Continued.Measured
  default-language:    Haskell2010
  -- other-modules:
  ghc-options:         -Wall
  build-depends:       base >=4.9 && <5,
                       containers >= 0.4 && < 0.7,
                       transformers >= 0.5 && < 0.6,
                       monoid-subclasses >=0.4 && <1.1,
                       parsers < 0.13,
                       rank2classes >= 1.0.2 && < 1.4

executable             arithmetic
  hs-source-dirs:      examples
  main-is:             Main.hs
  other-modules:       Arithmetic, Boolean, Combined, Comparisons, Conditionals, Lambda, Utilities
  default-language:    Haskell2010
  build-depends:       base >=4.9 && <5, containers >= 0.5.7.0 && < 0.7,
                       parsers < 0.13,
                       rank2classes >= 1.0.2 && < 1.4, grammatical-parsers,
                       monoid-subclasses >=0.4 && <1.1

test-suite           quicktests
  type:              exitcode-stdio-1.0
  hs-source-dirs:    test, examples
  x-uses-tf:         true
  build-depends:     base >=4.9 && < 5, containers >= 0.5.7.0 && < 0.7,
                     monoid-subclasses < 1.1, parsers < 0.13,
                     rank2classes >= 1.0.2 && < 1.4, grammatical-parsers,
                     QuickCheck >= 2 && < 3, checkers >= 0.4.6 && < 0.6, size-based < 0.2,
                     testing-feat >= 1.1 && < 1.2,
                     tasty >= 0.7, tasty-quickcheck >= 0.7
  main-is:           Test.hs
  other-modules:     Test.Ambiguous, Test.Examples,
                     Arithmetic, Boolean, Combined, Comparisons, Conditionals, Lambda, Utilities
  default-language:  Haskell2010

test-suite            doctests
  type:               exitcode-stdio-1.0
  hs-source-dirs:     test
  default-language:   Haskell2010
  main-is:            Doctest.hs
  other-modules:      README
  ghc-options:        -threaded -pgmL markdown-unlit
  build-depends:      base, rank2classes, grammatical-parsers, doctest >= 0.8
  build-tool-depends: markdown-unlit:markdown-unlit >= 0.5 && < 0.6

benchmark            benchmarks
  type:              exitcode-stdio-1.0
  hs-source-dirs:    test, examples
  ghc-options:       -O2 -Wall -rtsopts -main-is Benchmark.main
  Build-Depends:     base >=4.9 && < 5, rank2classes >= 1.0.2 && < 1.4, grammatical-parsers,
                     monoid-subclasses >=0.4 && <1.1, parsers < 0.13,
                     criterion >= 1.0, deepseq >= 1.1, containers >= 0.5.7.0 && < 0.7, text >= 1.1
  main-is:           Benchmark.hs
  other-modules:     Main, Arithmetic, Boolean, Combined, Comparisons, Conditionals, Lambda, Utilities
  default-language:  Haskell2010