packages feed

highlight-0.1.0.0: highlight.cabal

name:                highlight
version:             0.1.0.0
synopsis:            Command line tool for highlighting parts of files matching a regex.
description:         Please see <https://github.com/cdepillabout/highlight#readme README.md>.
homepage:            https://github.com/cdepillabout/highlight
license:             BSD3
license-file:        LICENSE
author:              Dennis Gosnell
maintainer:          cdep.illabout@gmail.com
copyright:           2017 Dennis Gosnell
category:            Text
build-type:          Simple
extra-source-files:  README.md
                   , img/highlight-example-screenshot.png
                   , test/golden/golden-files/highlight/from-grep.stderr
                   , test/golden/golden-files/highlight/from-grep.stdout
                   , test/golden/golden-files/highlight/multi-file.stderr
                   , test/golden/golden-files/highlight/multi-file.stdout
                   , test/golden/golden-files/highlight/single-file.stderr
                   , test/golden/golden-files/highlight/single-file.stdout
                   , test/golden/golden-files/hrep/from-stdin.stderr
                   , test/golden/golden-files/hrep/from-stdin.stdout
                   , test/golden/golden-files/hrep/multi-file.stderr
                   , test/golden/golden-files/hrep/multi-file.stdout
                   , test/golden/golden-files/hrep/single-file.stderr
                   , test/golden/golden-files/hrep/single-file.stdout
                   , test/golden/test-files/dir1/file3
                   , test/golden/test-files/dir1/file4
                   , test/golden/test-files/dir1/subdir1/file5
                   , test/golden/test-files/dir2/file6
                   , test/golden/test-files/empty-file
                   , test/golden/test-files/file1
                   , test/golden/test-files/file2
                   , test/golden/test-files/from-grep
cabal-version:       >=1.10

library
  hs-source-dirs:      src
  exposed-modules:     Highlight.Common.Color
                     , Highlight.Common.Error
                     , Highlight.Common.Monad
                     , Highlight.Common.Monad.Input
                     , Highlight.Common.Monad.Output
                     , Highlight.Common.Options
                     , Highlight.Highlight
                     , Highlight.Highlight.Monad
                     , Highlight.Highlight.Options
                     , Highlight.Highlight.Run
                     , Highlight.Hrep
                     , Highlight.Hrep.Monad
                     , Highlight.Hrep.Run
                     , Highlight.Pipes
                     , Highlight.Util
  build-depends:       base >= 4.7 && < 5
                     , base-compat >= 0.8
                     , ansi-terminal >= 0.6
                     , bytestring >= 0.9
                     , containers >= 0.5
                     , directory >= 1.2
                     , filepath >= 1
                     , lens >= 3
                     , mtl >= 2.0
                     , mtl-compat >= 0.2
                     , optparse-applicative >= 0.11
                     , pipes >= 4
                     , pipes-bytestring >= 2
                     , pipes-group >= 1
                     , pipes-safe >= 2
                     , regex >= 0.10
                     , regex-with-pcre >= 1.0
                     , semigroups >= 0.15
                     , system-filepath >= 0.4
                     , text >= 1.2
                     , transformers >= 0.2
                     , transformers-compat >= 0.3
  if os(windows)
    Build-Depends:     Win32 >= 2.0
  else
    Build-Depends:     unix >= 2.0

  default-language:    Haskell2010
  ghc-options:         -Wall
  other-extensions:    TemplateHaskell

executable highlight
  main-is:             Main.hs
  hs-source-dirs:      app/highlight
  build-depends:       base
                     , highlight
  default-language:    Haskell2010
  ghc-options:         -Wall -threaded -rtsopts -with-rtsopts=-N

executable hrep
  main-is:             Main.hs
  hs-source-dirs:      app/hrep
  build-depends:       base
                     , highlight
  default-language:    Haskell2010
  ghc-options:         -Wall -threaded -rtsopts -with-rtsopts=-N

test-suite highlight-doctest
  type:                exitcode-stdio-1.0
  main-is:             DocTest.hs
  hs-source-dirs:      test
  build-depends:       base
                     , doctest
                     , QuickCheck
  default-language:    Haskell2010
  ghc-options:         -Wall -threaded -rtsopts -with-rtsopts=-N

test-suite highlight-test
  type:                exitcode-stdio-1.0
  main-is:             Test.hs
  other-modules:       Test.Golden
  hs-source-dirs:      test
  build-depends:       base
                     , base-compat
                     , bytestring
                     , directory
                     , highlight
                     , lens
                     , pipes
                     , process
                     , tasty
                     , tasty-golden
                     , transformers
                     , transformers-compat
  if os(windows)
    Build-Depends:     Win32
  else
    Build-Depends:     unix
  default-language:    Haskell2010
  ghc-options:         -Wall -threaded -rtsopts -with-rtsopts=-N

benchmark highlight-bench
  type:                exitcode-stdio-1.0
  main-is:             Bench.hs
  hs-source-dirs:      bench
  build-depends:       base
                     , criterion
                     , highlight
  default-language:    Haskell2010
  ghc-options:         -Wall -threaded -rtsopts -with-rtsopts=-N

source-repository head
  type:     git
  location: git@github.com:cdepillabout/highlight.git