cabal-version:       2.2

name:                fuzzy-parse
version:             0.1.2.0
synopsis:            Tools for processing unstructured text data

description:
  The lightweight and easy to use functions for text tokenizing and parsing.  It aimed for
  parsing mostly unstructured data, but the structured formats may be parsed as well.

  It may be used in different sutiations, for DSL, tex markups or even for parsing simple
  grammars easier and sometimes faster than in case of usage mainstream parsing combinators
  or parser generators.

  See the README.markdown, examples and modules documentation for more.

license:             MIT
license-file:        LICENSE
author:              Dmitry Zuikov
maintainer:          dzuikov@gmail.com

category:            Text, Parsing
extra-source-files:  CHANGELOG.md

homepage:            https://github.com/hexresearch/fuzzy-parse
bug-reports:         https://github.com/hexresearch/fuzzy-parse/issues

extra-source-files:
    README.markdown

source-repository this
  type:     git
  location: https://github.com/hexresearch/fuzzy-parse.git
  tag:      0.1.0.0

library

  ghc-options:       -Wall

  exposed-modules:     Data.Text.Fuzzy.Tokenize 
                     , Data.Text.Fuzzy.Dates
                     , Data.Text.Fuzzy.Section
                     , Data.Text.Fuzzy.Attoparsec.Day
                     , Data.Text.Fuzzy.Attoparsec.Month

  build-depends:       base        >= 4.11 && <5
                     , attoparsec  >= 0.13
                     , containers
                     , mtl         >= 2.2
                     , safe
                     , text        >= 1.2
                     , time        >= 1.8


  hs-source-dirs:      src
  default-language:    Haskell2010

  default-extensions:  OverloadedStrings
                     , FlexibleInstances
                     , FlexibleContexts
                     , GeneralizedNewtypeDeriving

test-suite fuzzy-parse-test 
    default-language:    Haskell2010
    type:       exitcode-stdio-1.0
    main-is:    Spec.hs 
    other-modules: FuzzyParseSpec
    hs-source-dirs: test
    build-depends: base >= 4 && < 5
                 , hspec
                 , hspec-discover
                 , fuzzy-parse
                 , interpolatedstring-perl6
                 , text
    build-tool-depends: hspec-discover:hspec-discover == 2.*