]> git.rkrishnan.org Git - functorrent.git/commitdiff
FIlenames start with capital letters. hlint.hs -> HLint.hs
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Tue, 24 Mar 2015 08:04:10 +0000 (13:34 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Tue, 24 Mar 2015 08:04:10 +0000 (13:34 +0530)
functorrent.cabal
test/Hlint.hs [new file with mode: 0644]
test/hlint.hs [deleted file]

index 72295f66ef0d2d1df0e77fd999e57d794d59d1ed..fc4cfb35bb18cc4a28bfb98f4255c952b66776c4 100644 (file)
@@ -42,7 +42,7 @@ executable functorrent
   main-is:             Main.hs
   other-extensions:    OverloadedStrings
   hs-source-dirs:      src
-  ghc-options:         -Wall -fwarn-incomplete-patterns
+  ghc-options:         -Wall -fwarn-incomplete-patterns -optc-Os
   default-language:    Haskell2010
   build-depends:       base,
                        base16-bytestring,
@@ -71,6 +71,6 @@ test-suite functorrent-hlint
   type:              exitcode-stdio-1.0
   default-language:  Haskell2010
   hs-source-dirs:    test
-  main-is:           hlint.hs
+  main-is:           Hlint.hs
   build-depends:     base,
                      hlint
diff --git a/test/Hlint.hs b/test/Hlint.hs
new file mode 100644 (file)
index 0000000..0fa2512
--- /dev/null
@@ -0,0 +1,12 @@
+module Main where
+
+import Control.Monad
+import Language.Haskell.HLint
+import System.Environment
+import System.Exit
+
+main :: IO ()
+main = do
+  args <- getArgs
+  hints <- hlint $ ["src", "--cpp-define=HLINT", "--cpp-ansi"] ++ args
+  unless (null hints) exitFailure
diff --git a/test/hlint.hs b/test/hlint.hs
deleted file mode 100644 (file)
index 0fa2512..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-module Main where
-
-import Control.Monad
-import Language.Haskell.HLint
-import System.Environment
-import System.Exit
-
-main :: IO ()
-main = do
-  args <- getArgs
-  hints <- hlint $ ["src", "--cpp-define=HLINT", "--cpp-ansi"] ++ args
-  unless (null hints) exitFailure