Skip to content

Commit

Permalink
Remove unused and lesser-used modules
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed Oct 18, 2024
1 parent fbd863b commit 9e15db2
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 237 deletions.
2 changes: 0 additions & 2 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ library:
- bytestring
- composition-extra
- conduit
- errata
- errors
- exceptions
- extra
Expand Down Expand Up @@ -103,4 +102,3 @@ tests:
- load-env
- restyler
- text
- yaml
6 changes: 0 additions & 6 deletions restyler.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ library
Restyler.Restyler.Run
Restyler.RestyleResult
Restyler.RestylerResult
Restyler.Wiki
Restyler.Yaml.Errata
other-modules:
Paths_restyler
hs-source-dirs:
Expand Down Expand Up @@ -89,7 +87,6 @@ library
, bytestring
, composition-extra
, conduit
, errata
, errors
, exceptions
, extra
Expand Down Expand Up @@ -155,8 +152,6 @@ test-suite test
Restyler.Restyler.RunSpec
Restyler.RestylerSpec
Restyler.Test.FS
Restyler.WikiSpec
Restyler.Yaml.ErrataSpec
SpecHelper
Paths_restyler
hs-source-dirs:
Expand Down Expand Up @@ -194,5 +189,4 @@ test-suite test
, load-env
, restyler
, text
, yaml
default-language: GHC2021
5 changes: 0 additions & 5 deletions src/Restyler/Restyler/Run.hs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ import Restyler.Monad.WriteFile
import Restyler.Options
import Restyler.Restyler
import Restyler.RestylerResult
import Restyler.Wiki qualified as Wiki
import System.FilePath ((</>))
import System.FilePath qualified as FilePath

Expand Down Expand Up @@ -77,8 +76,6 @@ instance Exception RestylerOutOfMemory where
displayException (RestylerOutOfMemory Restyler {..}) =
mconcat
[ "Restyler " <> rName <> " used too much memory (exit code 137)"
, "\n"
, "\nSee " <> unpack (Wiki.commonError "Restyle Error 137") <> " for more details"
]

newtype RestylerCommandNotFound = RestylerCommandNotFound Restyler
Expand All @@ -90,8 +87,6 @@ instance Exception RestylerCommandNotFound where
[ "Restyler " <> rName <> " has an invalid command (exit code 127)"
, "\n"
, "You may need to adjust restylers[" <> rName <> "].command"
, "\n"
, "\nSee " <> unpack (Wiki.commonError "Restyle Error 127") <> " for more details"
]

-- | Runs the configured @'Restyler'@s for the files and reports results
Expand Down
33 changes: 0 additions & 33 deletions src/Restyler/Wiki.hs

This file was deleted.

74 changes: 0 additions & 74 deletions src/Restyler/Yaml/Errata.hs

This file was deleted.

36 changes: 0 additions & 36 deletions test/Restyler/WikiSpec.hs

This file was deleted.

81 changes: 0 additions & 81 deletions test/Restyler/Yaml/ErrataSpec.hs

This file was deleted.

0 comments on commit 9e15db2

Please sign in to comment.