From e47e94c4121f7b1669df1a97fbaf8e8c434c256d Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 14 Apr 2017 00:28:44 -0400 Subject: [PATCH] Use "words" instead of "splitWs" and drop MissingH dependency. --- hath.cabal | 2 -- src/Main.hs | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) 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 -- 2.43.2