cabal-version: 2.2
name: fix-whitespace
version: 0.1
build-type: Simple
category: Text
synopsis: Fixes whitespace issues.
description: Removes trailing whitespace, lines containing only whitespace, expands tabs,
and ensures that every file ends in a newline character.
license: MIT
license-file: LICENSE
author: fix-whitespace was originally written by Nils Anders Danielsson as part of Agda 2 with contributions from Ulf Norell, Andrés Sicard-Ramírez, Andreas Abel, Philipp Hausmann, Jesper Cockx, Vlad Semenov, Liang-Ting Chen, and Artem Pelenitsyn.
maintainer: Andreas Abel, Liang-Ting Chen <liang.ting.chen.tw@gmail.com>
homepage: https://github.com/agda/fix-whitespace
bug-reports: https://github.com/agda/fix-whitespace/issues
tested-with:
-- cabal-supported GHCs
GHC == 9.6.2
GHC == 9.4.5
GHC == 9.2.8
GHC == 9.0.2
GHC == 8.10.7
GHC == 8.8.4
GHC == 8.6.5
GHC == 8.4.4
GHC == 8.2.2
GHC == 8.0.2
extra-doc-files:
CHANGELOG.md
README.md
fix-whitespace.yaml
-- stack-supported GHCs
stack-9.6.2.yaml
stack-9.4.5.yaml
stack-9.2.8.yaml
stack-9.0.2.yaml
stack-8.10.7.yaml
stack-8.8.4.yaml
stack-8.6.5.yaml
stack-8.4.4.yaml
source-repository head
type: git
location: https://github.com/agda/fix-whitespace.git
common common-build-parameters
default-language: Haskell2010
default-extensions:
LambdaCase
ScopedTypeVariables
ghc-options:
-Wall
-Wcompat
-Wmissing-import-lists
library
import: common-build-parameters
hs-source-dirs: src
exposed-modules: Data.List.Extra.Drop
Data.Text.FixWhitespace
build-depends:
base >= 4.9.0.0 && < 5
, text >= 1.2.3.0 && < 1.3 || == 2.0.*
, transformers >= 0.5.2.0 && < 0.7
executable fix-whitespace
import: common-build-parameters
hs-source-dirs: .
main-is: FixWhitespace.hs
other-modules: ParseConfig
Paths_fix_whitespace
autogen-modules: Paths_fix_whitespace
build-depends:
fix-whitespace
, base
, text
-- non-inherited dependencies:
, directory >= 1.2.6.2 && < 1.4
, extra >= 1.1 && < 2.0
, filepath >= 1.4.1.0 && < 1.5
, filepattern >= 0.1.3 && < 0.2
-- filepattern 0.1.3 fixes issue fix-whitespace#9
, yaml >= 0.8.4 && < 0.12
test-suite QuickCheck
import: common-build-parameters
hs-source-dirs: test
main-is: QuickCheck.hs
type: exitcode-stdio-1.0
build-depends:
fix-whitespace
, base
-- non-inherited dependencies
, QuickCheck
, tasty
, tasty-quickcheck
test-suite Golden
import: common-build-parameters
hs-source-dirs: test
main-is: Golden.hs
type: exitcode-stdio-1.0
build-depends:
fix-whitespace
, base
, filepath
, text
-- non-inherited dependencies
, bytestring
, tasty
, tasty-golden