]> gitweb.michael.orlitzky.com - hath.git/commitdiff
Use "words" instead of "splitWs" and drop MissingH dependency.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 14 Apr 2017 04:28:44 +0000 (00:28 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 14 Apr 2017 04:28:44 +0000 (00:28 -0400)
hath.cabal
src/Main.hs

index d6fd50a39976ec95697f15b65af862fdb08415e3..70673eeed37b90f02f201cea74ae63906b1a28e7 100644 (file)
@@ -107,7 +107,6 @@ executable hath
   build-depends:
     base                        == 4.*,
     cmdargs                     >= 0.10,
-    MissingH                    >= 1.2,
     split                       >= 0.2,
     tasty                       >= 0.8,
     tasty-hunit                 >= 0.8,
@@ -134,7 +133,6 @@ test-suite testsuite
   build-depends:
     base                        == 4.*,
     cmdargs                     >= 0.10,
-    MissingH                    >= 1.2,
     split                       >= 0.2,
     tasty                       >= 0.8,
     tasty-hunit                 >= 0.8,
index 8fce2f51aeac6021820774a58462e7a51b4df87a..174efe28258e608ac48c488ae8225522699b7057 100644 (file)
@@ -4,7 +4,6 @@ where
 import Control.Monad (when)
 import Data.List ((\\), intercalate)
 import Data.Maybe (catMaybes, isNothing)
-import Data.String.Utils (splitWs)
 import System.Exit (ExitCode( ExitFailure ), exitWith)
 import System.IO (stderr, hPutStrLn)
 import Text.Read (readMaybe)
@@ -103,7 +102,7 @@ main = do
   -- This reads stdin.
   input <- getContents
 
-  let cidr_strings = splitWs input
+  let cidr_strings = words input
   let cidrs = map readMaybe cidr_strings :: [Maybe Cidr]
 
   when (any isNothing cidrs) $ do