packages feed

indentation-0.3.1: indentation.cabal

name:                indentation
version:             0.3.1
synopsis:            Indentation sensitive parsing combinators for Parsec and Trifecta
description:         Indentation sensitive parsing combinators for Parsec and Trifecta.
                     .                     
                     This package provides both the Parsec and
                     Trifecta combinators.  It is mainly useful for
                     backward compatability with older versions of
                     indentation.
                     Individual backends are available in the indentation-parsec and indentation-trifecta
                     packages.
                     .
                     See
                     .
                         __Michael D. Adams and Ömer S. Ağacan__.
                         Indentation-sensitive parsing for Parsec.
                         In /Proceedings of the 2014 ACM SIGPLAN Symposium on Haskell/,
                         Haskell ’14, pages 121–132.
                         ACM, New York, NY, USA, September 2014. ISBN 978-1-4503-3041-1.
                         <http://dx.doi.org/10.1145/2633357.2633369 doi:10.1145/2633357.2633369>.

license:             BSD3
license-file:        LICENSE
author:              Michael D. Adams <http://michaeldadams.org/>
maintainer:          Ömer Sinan Ağacan <omeragacan@gmail.com>
                     Aleksey Kliger <aleksey@lambdageek.org>
category:            Parsing
build-type:          Simple
cabal-version:       >=1.10
extra-source-files:  CHANGELOG.md

homepage:            https://bitbucket.org/adamsmd/indentation
bug-reports:         https://bitbucket.org/adamsmd/indentation/issues
tested-with:         GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1

source-repository head
  type:                git
  location:            https://bitbucket.org/adamsmd/indentation.git

library
  hs-source-dirs:      src
  exposed-modules:     Text.Parser.Indentation.Implementation
  build-depends:       base >=4.6 && <4.10,
                       mtl >=2.1,
                       indentation-core == 0.0

  if flag(Parsec)
    build-depends:     parsec >=3.1.5,
                       indentation-parsec == 0.0
    exposed-modules:   Text.Parsec.Indentation
                     , Text.Parsec.Indentation.Char
                     , Text.Parsec.Indentation.Token

  if flag(Trifecta)
    build-depends:     trifecta >=1.4 && <1.7,
                       parsers >=0.10 && <0.13,
                       indentation-trifecta == 0.0.1
    exposed-modules:   Text.Trifecta.Indentation

  default-language:    Haskell2010

  ghc-options:         -Wall

flag Parsec
  description:       Include indentation operators for Parsec
  manual:            True

flag Trifecta
  description:       Include indentation operators for Trifecta
  manual:            True