File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ import qualified Data.Text.IO as Text -- Strict IO.
14
14
import System.Directory ( getCurrentDirectory , doesFileExist )
15
15
import System.Environment
16
16
import System.Exit
17
- import System.FilePath
18
- import System.FilePattern
17
+ -- import System.FilePath
18
+ -- import System.FilePattern
19
19
import System.FilePattern.Directory
20
20
import System.IO
21
21
import System.Console.GetOpt
@@ -40,6 +40,7 @@ data Options = Options
40
40
-- ^ The location to the configuration file.
41
41
}
42
42
43
+ defaultOptions :: Options
43
44
defaultOptions = Options
44
45
{ optVerbose = False
45
46
, optHelp = False
@@ -214,8 +215,8 @@ transform =
214
215
n = 8 - p `mod` 8
215
216
convertOne (a, p) c = (c: a, p+ 1 )
216
217
217
- addSpaces 0 x = x
218
- addSpaces n x = addSpaces (n - 1 ) ( ' ' : x )
218
+ addSpaces :: Int -> String -> String
219
+ addSpaces n = ( replicate n ' ' ++ )
219
220
220
221
-- | 'dropWhile' except keep the first of the dropped elements
221
222
dropWhile1 :: (a -> Bool ) -> [a ] -> [a ]
Original file line number Diff line number Diff line change @@ -32,8 +32,9 @@ instance FromJSON RawConfig where
32
32
v .:? " excluded-files"
33
33
parseJSON _ = fail " Expected Object for Config value"
34
34
35
- parseRawConfig :: FilePath -> IO (Either Y. ParseException RawConfig )
36
- parseRawConfig = Y. decodeFileEither
35
+ -- -- UNUSED
36
+ -- parseRawConfig :: FilePath -> IO (Either Y.ParseException RawConfig)
37
+ -- parseRawConfig = Y.decodeFileEither
37
38
38
39
parseConfig :: FilePath -> IO Config
39
40
parseConfig fp = do
Original file line number Diff line number Diff line change @@ -48,3 +48,7 @@ executable fix-whitespace
48
48
-- The other GHC versions can restrict to >= 1.2.3.1.
49
49
if impl(ghc < 8.4.1 ) || impl(ghc > 8.4.3 )
50
50
build-depends : text >= 1.2.3.1
51
+
52
+ ghc-options :
53
+ -Wall
54
+ -Wcompat
You can’t perform that action at this time.
0 commit comments