]> gitweb.michael.orlitzky.com - haeredes.git/blobdiff - src/Main.hs
src: apply all hlint suggestions.
[haeredes.git] / src / Main.hs
index c9356bfd9318de6d96c279d0bd9dd0608fe9b332..f5aef9aa92e433ee1bfb2351a360491c104e457d 100644 (file)
@@ -9,7 +9,7 @@ import qualified Data.ByteString.Char8 as BS (
   getContents,
   pack,
   words )
-import Data.List ( (\\), intersperse, sort )
+import Data.List ( (\\), intercalate, sort )
 import Network.DNS (
   DNSError(NameError),
   Domain,
@@ -80,7 +80,7 @@ report delgts normalize_function (d, Right raw_hosts) = do
     -- Create one big string by joining together a list of smaller
     -- strings and placing a delimiter between them.
     join :: String -> [String] -> String
-    join delimiter strings = concat (intersperse delimiter strings)
+    join delimiter strings = intercalate delimiter strings
 
 
 main :: IO ()
@@ -142,6 +142,6 @@ main = do
   results <- parallelInterleaved actions
 
   -- Output the results.
-  _ <- mapM (report nrml_delegates normalize_function) results
+  mapM_ (report nrml_delegates normalize_function) results
 
   stopGlobalPool