packages feed

parsers-0.9: parsers.cabal

name:          parsers
category:      Text, Parsing
version:       0.9
license:       BSD3
cabal-version: >= 1.10
license-file:  LICENSE
author:        Edward A. Kmett
maintainer:    Edward A. Kmett <ekmett@gmail.com>
stability:     experimental
homepage:      http://github.com/ekmett/parsers/
bug-reports:   http://github.com/ekmett/parsers/issues
copyright:     Copyright (C) 2010-2013 Edward A. Kmett
synopsis:      Parsing combinators
description:   Parsing combinators
build-type:    Custom

extra-source-files: .travis.yml

source-repository head
  type: git
  location: git://github.com/ekmett/parsers.git

flag lib-Werror
  manual: True
  default: False

library
  default-language: Haskell2010
  exposed-modules:
    Text.Parser.Char
    Text.Parser.Combinators
    Text.Parser.LookAhead
    Text.Parser.Permutation
    Text.Parser.Expression
    Text.Parser.Token
    Text.Parser.Token.Style
    Text.Parser.Token.Highlight

  hs-source-dirs: src

  if flag(lib-Werror)
    ghc-options: -Wall
  else
    ghc-options: -Wall

  ghc-options: -O2

  build-depends:
    base                 >= 4       && < 5,
    charset              >= 0.3,
    containers           >= 0.4     && < 0.6,
    text                 >= 0.10    && < 0.12,
    transformers         >= 0.2     && < 0.4,
    unordered-containers >= 0.2     && < 0.3

-- Verify the results of the examples
test-suite doctests
  type:    exitcode-stdio-1.0
  main-is: doctests.hs
  default-language: Haskell2010
  build-depends:
    base,
    containers,
    directory >= 1.0,
    doctest >= 0.9.1,
    filepath
  ghc-options: -Wall -threaded
  if impl(ghc<7.6.1)
    ghc-options: -Werror
  hs-source-dirs: tests