]> gitweb.michael.orlitzky.com - haeredes.git/blobdiff - src/Main.hs
src/Main.hs: add an explicit export list to silence a GHC warning.
[haeredes.git] / src / Main.hs
index f7a56ea5fbdf3fd8b6d50f4b2316396a3afd16f6..89d2cd56d1a2aeaca07420d403e2e29da1e7abfe 100644 (file)
@@ -1,4 +1,4 @@
-module Main
+module Main (main)
 where
 
 import Control.Concurrent.ParallelIO.Global (
@@ -9,8 +9,7 @@ import qualified Data.ByteString.Char8 as BS (
   getContents,
   pack,
   words )
-import Data.List ( (\\) )
-import Data.String.Utils (join)
+import Data.List ( (\\), intersperse )
 import Network.DNS (
   Domain,
   FileOrNumericHost(RCHostName),
@@ -72,6 +71,11 @@ report delgts normalize_function (d, Right raw_hosts) = do
                (show d) ++
                " delegates somewhere else: " ++
                (join " " (map show leftovers))
+  where
+    -- 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)
 
 
 main :: IO ()