packages feed

hfmt-0.2.2: hfmt.cabal

name:                hfmt
version:             0.2.2
synopsis:            Haskell source code formatter
description:         Inspired by gofmt. Built using hlint, hindent, and stylish-haskell.
license:             MIT
license-file:        LICENSE
author:              Daniel Stiner
maintainer:          Daniel Stiner <daniel.stiner@gmail.com>
stability:           Experimental
homepage:            http://github.com/danstiner/hfmt
bug-reports:         http://github.com/danstiner/hfmt/issues
category:            Language
build-type:          Simple
extra-source-files:  README.md, .stylish-haskell.yaml
cabal-version:       >=1.9.2
tested-with:         GHC == 8.0.2, GHC == 8.2.2, GHC == 8.5

library
  Hs-Source-Dirs:    src
  Exposed-Modules:   Language.Haskell.Format
                     , Language.Haskell.Format.Utilities
                     , Language.Haskell.Source.Enumerator
  Other-Modules:     Language.Haskell.Format.Internal
                     , Language.Haskell.Format.HIndent
                     , Language.Haskell.Format.HLint
                     , Language.Haskell.Format.Stylish
                     , Language.Haskell.Format.Types
                     , Path.Find
  GHC-Options:       -Wall
  Build-Depends:     base >= 4.8 && < 5
                     , bytestring
                     , Cabal
                     , conduit
                     , conduit-combinators
                     , Diff
                     , directory
                     , exceptions
                     , filepath
                     , haskell-src-exts > 1.20
                     , hindent == 5.*
                     , hlint == 2.*
                     , HUnit
                     , path
                     , path-io
                     , pretty
                     , stylish-haskell == 0.9.*
                     , text
                     , transformers
                     , yaml

executable hfmt
  Hs-Source-Dirs:    app
  Main-Is:           Main.hs
  Other-Modules:     Actions
                   , ExitCode
                   , Options
                   , Types
  GHC-Options:       -Wall
  Build-Depends:     base >= 4.8 && < 5
                   , conduit
                   , conduit-combinators
                   , directory
                   , hfmt
                   , ansi-wl-pprint
                   , optparse-applicative

test-suite self-formatting-test
  Type:              exitcode-stdio-1.0
  Hs-Source-Dirs:    test/self-formatting
  Main-Is:           Spec.hs
  Build-Depends:     base == 4.*
                     , hfmt
                     , HUnit
                     , test-framework
                     , test-framework-hunit

test-suite pure-test
  Type:              exitcode-stdio-1.0
  Hs-Source-Dirs:    test/pure
  Main-Is:           Spec.hs
  Build-Depends:     base == 4.*
                     , hfmt
                     , HUnit
                     , test-framework
                     , test-framework-hunit

source-repository head
  type: git
  location: git://github.com:danstiner/hfmt.git