packages feed

indents-0.4.0.0: indents.cabal

Name:                indents
Version:             0.4.0.0
Synopsis:            indentation sensitive parser-combinators for parsec
Description:         This library provides functions for use in parsing indentation sensitive contexts. It parses blocks of lines all indented to the same level as well as lines continued at an indented level below.
Homepage:            http://github.com/jaspervdj/indents
License:             BSD3
License-file:        LICENSE
Author:              Sam Anklesaria, Jasper Van der Jeugt
Maintainer:          jaspervdj@gmail.com
Category:            Text, Parsing
Build-type:          Simple
Cabal-version:       >=1.8

Extra-source-files:
  CHANGELOG.md

Source-repository head
  Type:     git
  Location: git@github.com:jaspervdj/indents.git

Library
  Hs-source-dirs: src

  If impl(ghc >= 8.0)
    Ghc-options: -Wall -fno-warn-redundant-constraints
  Else
    Ghc-options: -Wall

  Exposed-modules:
    Text.Parsec.Indent

  Build-depends:
    base   >= 4 && < 5,
    parsec >= 3 && < 3.2,
    mtl    >= 1 && < 2.3

Test-suite indents-tests
  Ghc-options:    -Wall
  Hs-source-dirs: tests
  Main-is:        Main.hs
  Type:           exitcode-stdio-1.0

  Other-modules:
    Text.Parsec.Indent.Tests

  Build-depends:
    indents,
    tasty       >= 0.11 && < 0.12,
    tasty-hunit >= 0.9  && < 0.10,
    -- Copy-pasted from 'Library' dependencies.
    base   >= 4 && < 5,
    parsec >= 3 && < 3.2,
    mtl    >= 1 && < 2.3