From: Michael Orlitzky Date: Fri, 14 Apr 2017 04:28:44 +0000 (-0400) Subject: Use "words" instead of "splitWs" and drop MissingH dependency. X-Git-Tag: 0.4.0~14 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=e47e94c4121f7b1669df1a97fbaf8e8c434c256d;p=hath.git Use "words" instead of "splitWs" and drop MissingH dependency. --- diff --git a/hath.cabal b/hath.cabal index d6fd50a..70673ee 100644 --- a/hath.cabal +++ b/hath.cabal @@ -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, diff --git a/src/Main.hs b/src/Main.hs index 8fce2f5..174efe2 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -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