Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ghc: ["9.8.1", "9.6.3", "9.4.6", "9.2.8"]
ghc: ["9.2.8", "9.4.8", "9.6.5", "9.8.2", "9.10.1"]
env:
CONFIG: "--enable-tests --enable-benchmarks"
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
- uses: haskell-actions/setup@v2
id: setup-haskell-cabal
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: "3.10.1.0"
cabal-version: "3.10.3.0"
- run: cabal v2-update
- run: cabal v2-freeze $CONFIG
- uses: actions/cache@v2
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ shell.nix
tags
dist/
dist-newstyle/
.pre-commit-config.yaml
335 changes: 179 additions & 156 deletions apply-refact.cabal
Original file line number Diff line number Diff line change
@@ -1,168 +1,191 @@
cabal-version: 3.0

name: apply-refact
version: 0.14.0.0
synopsis: Perform refactorings specified by the refact library.
description: Perform refactorings specified by the refact library. It is primarily used with HLint's --refactor flag.
license: BSD-3-Clause
license-file: LICENSE
author: Matthew Pickering
maintainer: [email protected]
cabal-version: 3.0
name: apply-refact
version: 0.14.0.0
synopsis: Perform refactorings specified by the refact library.
description:
Perform refactorings specified by the refact library. It is primarily used with HLint's --refactor flag.

license: BSD-3-Clause
license-file: LICENSE
author: Matthew Pickering
maintainer: [email protected]

-- copyright:
category: Development
homepage: https://github.com/mpickering/apply-refact
bug-reports: https://github.com/mpickering/apply-refact/issues
build-type: Simple
extra-source-files: CHANGELOG
, README.md
, tests/examples/*.hs
, tests/examples/*.hs.refact
, tests/examples/*.hs.expected
tested-with: GHC==9.8.1, GHC==9.6.3, GHC==9.4.6, GHC==9.2.8
category: Development
homepage: https://github.com/mpickering/apply-refact
bug-reports: https://github.com/mpickering/apply-refact/issues
build-type: Simple
extra-source-files:
README.md
tests/examples/*.hs
tests/examples/*.hs.expected
tests/examples/*.hs.refact
extra-doc-files:
CHANGELOG

tested-with: GHC ==9.2.8 || ==9.4.6 || ==9.6.5 || ==9.8.2 || ==9.10.1

source-repository head
type: git
location: https://github.com/mpickering/apply-refact.git

library
exposed-modules: Refact.Utils
, Refact.Apply
, Refact.Fixity
, Refact.Internal
, Refact.Compat
GHC-Options: -Wall
build-depends: base >=4.16 && < 5
, refact >= 0.2
, ghc-boot-th
, ghc-exactprint ^>= 1.5.0 || ^>= 1.6.0 || ^>= 1.7.0 || ^>= 1.8.0
, containers >= 0.6.0.1 && < 0.8
, extra >= 1.7.3
, syb >= 0.7.1
, process >= 1.6
, transformers >= 0.5.6.2 && < 0.7
, filemanip >= 0.3.6.3 && < 0.4
, uniplate >= 1.6.13
, unix-compat >= 0.5.2
, directory >= 1.3
if (impl(ghc >= 9.8) && impl(ghc < 9.9))
build-depends: ghc ^>= 9.8
if (impl(ghc >= 9.6) && impl(ghc < 9.7))
build-depends: ghc ^>= 9.6
if (impl(ghc >= 9.4) && impl(ghc < 9.5))
build-depends: ghc ^>= 9.4
if (impl(ghc >= 9.2) && impl(ghc < 9.3))
build-depends: ghc ^>= 9.2

default-extensions: FlexibleContexts
, FlexibleInstances
, FunctionalDependencies
, GADTs
, LambdaCase
, MultiParamTypeClasses
, NamedFieldPuns
, PolyKinds
, RankNTypes
, ScopedTypeVariables
, TupleSections
, TypeApplications
, TypeOperators
hs-source-dirs: src
default-language: Haskell2010
exposed-modules:
Refact.Apply
Refact.Compat
Refact.Fixity
Refact.Internal
Refact.Utils

ghc-options: -Wall
build-depends:
, base >=4.16 && <5
, containers >=0.6.0.1 && <0.8
, directory >=1.3
, extra >=1.7.3
, filemanip >=0.3.6.3 && <0.4
, ghc-boot-th
, ghc-exactprint ^>=1.5.0 || ^>=1.6.0 || ^>=1.7.0 || ^>=1.8.0 || ^>=1.10.0
, process >=1.6
, refact >=0.2
, syb >=0.7.1
, transformers >=0.5.6.2 && <0.7
, uniplate >=1.6.13
, unix-compat >=0.5.2

if (impl(ghc >=9.10) && impl(ghc <9.11))
build-depends: ghc ^>=9.10

if (impl(ghc >=9.8) && impl(ghc <9.9))
build-depends: ghc ^>=9.8

if (impl(ghc >=9.6) && impl(ghc <9.7))
build-depends: ghc ^>=9.6

if (impl(ghc >=9.4) && impl(ghc <9.5))
build-depends: ghc ^>=9.4

if (impl(ghc >=9.2) && impl(ghc <9.3))
build-depends: ghc ^>=9.2

default-extensions:
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
LambdaCase
MultiParamTypeClasses
NamedFieldPuns
PolyKinds
RankNTypes
ScopedTypeVariables
TupleSections
TypeApplications
TypeOperators

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

executable refactor
main-is: Main.hs
main-is: Main.hs
other-modules:
Paths_apply_refact
Refact.Apply
Refact.Compat
Refact.Fixity
Refact.Internal
Refact.Options
Refact.Run
Refact.Utils
autogen-modules:
Paths_apply_refact
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall -fno-warn-unused-do-bind
build-depends: base
, refact
, ghc-exactprint
, ghc
, ghc-boot-th
, ghc-paths
, containers
, extra
, syb
, process
, directory
, optparse-applicative >= 0.15.1.0
, filemanip
, unix-compat
, filepath
, transformers
, uniplate
default-extensions: FlexibleContexts
, FlexibleInstances
, FunctionalDependencies
, GADTs
, LambdaCase
, MultiParamTypeClasses
, NamedFieldPuns
, PolyKinds
, RankNTypes
, ScopedTypeVariables
, TupleSections
, TypeApplications
, TypeOperators

Test-Suite test
type: exitcode-stdio-1.0
hs-source-dirs: tests, src
main-is: Test.hs
Paths_apply_refact
Refact.Apply
Refact.Compat
Refact.Fixity
Refact.Internal
Refact.Options
Refact.Run
Refact.Utils

autogen-modules: Paths_apply_refact
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall -fno-warn-unused-do-bind
build-depends:
, base
, containers
, directory
, extra
, filemanip
, filepath
, ghc
, ghc-boot-th
, ghc-exactprint
, ghc-paths
, optparse-applicative >=0.15.1.0
, process
, refact
, syb
, transformers
, uniplate
, unix-compat

default-extensions:
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
LambdaCase
MultiParamTypeClasses
NamedFieldPuns
PolyKinds
RankNTypes
ScopedTypeVariables
TupleSections
TypeApplications
TypeOperators

test-suite test
type: exitcode-stdio-1.0
hs-source-dirs: tests src
main-is: Test.hs
other-modules:
Paths_apply_refact
Refact.Apply
Refact.Compat
Refact.Fixity
Refact.Internal
Refact.Options
Refact.Run
Refact.Utils
ghc-options: -threaded
default-language: Haskell2010
build-depends: tasty
, tasty-golden
, tasty-expected-failure
, base
, refact
, ghc-exactprint
, ghc
, ghc-boot-th
, ghc-paths
, containers
, extra
, syb
, process
, directory
, optparse-applicative
, filemanip
, unix-compat
, filepath
, silently
, transformers
, uniplate
default-extensions: FlexibleContexts
, FlexibleInstances
, FunctionalDependencies
, GADTs
, LambdaCase
, MultiParamTypeClasses
, NamedFieldPuns
, PolyKinds
, RankNTypes
, ScopedTypeVariables
, TupleSections
, TypeApplications
, TypeOperators
Paths_apply_refact
Refact.Apply
Refact.Compat
Refact.Fixity
Refact.Internal
Refact.Options
Refact.Run
Refact.Utils

ghc-options: -threaded
default-language: Haskell2010
build-depends:
, base
, containers
, directory
, extra
, filemanip
, filepath
, ghc
, ghc-boot-th
, ghc-exactprint
, ghc-paths
, optparse-applicative
, process
, refact
, silently
, syb
, tasty
, tasty-expected-failure
, tasty-golden
, transformers
, uniplate
, unix-compat

default-extensions:
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
LambdaCase
MultiParamTypeClasses
NamedFieldPuns
PolyKinds
RankNTypes
ScopedTypeVariables
TupleSections
TypeApplications
TypeOperators
Loading