getContents,
pack,
words )
-import Data.List ( (\\) )
-import Data.String.Utils (join)
+import Data.List ( (\\), intersperse )
import Network.DNS (
Domain,
FileOrNumericHost(RCHostName),
(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 ()