hspretty 0.1.0.0 → 0.2.0.0
raw patch · 3 files changed
+18/−11 lines, 3 filesdep ~basedep ~ormoludep ~path
Dependency ranges changed: base, ormolu, path, process, streamly
Files
- CHANGELOG.md +7/−1
- hspretty.cabal +8/−7
- src/CLI.hs +3/−3
CHANGELOG.md view
@@ -1,6 +1,12 @@ # Revision history for hspretty +## 0.2.0.0 -- 2021-08-21++- GHC 9.0.1 support.+- Bumped `streamly` to `0.8.0` (some API changes).+- Bumped package bounds.+ ## 0.1.0.0 -- 2021-05-16 -* First version. Created as a Haskell package from this Gist:+- First version. Created as a Haskell package from this Gist: https://gist.github.com/lancelet/9a9d5e207d36be20e0e1f16fbe51bb7d
hspretty.cabal view
@@ -1,6 +1,6 @@-cabal-version: 2.4+cabal-version: 3.0 name: hspretty-version: 0.1.0.0+version: 0.2.0.0 synopsis: My opinionated Haskell project formatter. description: This is a formatter for Haskell projects (for example, for *.cabal files and@@ -17,6 +17,7 @@ copyright: Copyright (C) Jonathan Merritt 2021 category: Tools extra-source-files: CHANGELOG.md+tested-with: GHC ==8.10.5 || ==9.0.1 source-repository head type: git@@ -24,7 +25,7 @@ common base default-language: Haskell2010- build-depends: base ^>=4.14.1.0+ build-depends: base ^>=4.14.1.0 || ^>=4.15.0.0 common ghc-options ghc-options:@@ -48,11 +49,11 @@ , bytestring ^>=0.10.12.0 , directory ^>=1.3.6.0 , optparse-applicative ^>=0.16.1.0- , ormolu ^>=0.1.4.1- , path ^>=0.8.0+ , ormolu ^>=0.1.4.1 || ^>=0.2.0.0+ , path ^>=0.8.0 || ^>=0.9.0 , path-io ^>=1.6.2- , process ^>=1.6.11.0- , streamly ^>=0.7.3+ , process ^>=1.6.9.0+ , streamly ^>=0.8.0 , text ^>=1.2.4.1 , text-short ^>=0.1.3 , unliftio ^>=0.2.16
src/CLI.hs view
@@ -25,7 +25,7 @@ import qualified PathFilter import RunMode (RunMode) import qualified RunMode-import Streamly (AsyncT, asyncly, maxThreads, serially)+import Streamly.Prelude (AsyncT, fromAsync, fromSerial, maxThreads) import qualified Streamly.Prelude as S import qualified System.Exit @@ -63,8 +63,8 @@ changed :: [Bool] <- S.toList $ S.map (Formatter.isUnchanged . snd) $- serially- ( asyncly . maxThreads nThreads $+ fromSerial+ ( fromAsync . maxThreads nThreads $ ( listDirRecursive dir & S.map (fromJustUnsafe . Path.stripProperPrefix dir) & S.filter