packages feed

lens-regex-0.1.3: lens-regex.cabal

name:                lens-regex
version:             0.1.3
synopsis:            Lens powered regular expression
description:         lens interface for regex-base. Please see the README on Github at <https://github.com/himura/lens-regex#readme>
homepage:            https://github.com/himura/lens-regex
license:             BSD3
license-file:        LICENSE
author:              Takahiro HIMURA
maintainer:          Takahiro HIMURA <taka@himura.jp>
copyright:           Copyright (C) 2015 Takahiro HIMURA
category:            Text
build-type:          Simple
cabal-version:       >=1.10

tested-with:         GHC == 8.8.3, GHC == 8.10.3, GHC == 9.0.1

extra-source-files:
  .gitignore
  README.md
  CHANGELOG.md
  sample/*.hs

source-repository head
  type: git
  location: https://github.com/himura/lens-regex.git

flag build-samples
  description: build samples
  default: False

library
  exposed-modules:     Text.Regex.Lens
                       Text.Regex.Quote
  build-depends:       base >= 4.5 && < 5
                     , array
                     , lens >= 4
                     , regex-base
                     , template-haskell
  hs-source-dirs:      src
  ghc-options:         -Wall
  default-language:    Haskell2010

executable sample
  main-is: sample.hs
  hs-source-dirs: sample

  if !flag(build-samples)
    buildable: False
  else
    build-depends:     base >= 4.5 && < 5
                     , lens
                     , lens-regex
                     , regex-posix
    ghc-options:       -Wall
 default-language:  Haskell2010

test-suite doctests
  type: exitcode-stdio-1.0
  main-is: doctests.hs
  hs-source-dirs: tests

  build-depends:       base
                     , directory
                     , doctest
                     , filepath
                     , regex-posix
  default-language:  Haskell2010