]> gitweb.michael.orlitzky.com - email-validator.git/commitdiff
Whitespace cleanup in Main, import from EmailAddress explicitly.
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 15 Feb 2014 19:30:22 +0000 (14:30 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Sat, 15 Feb 2014 19:30:22 +0000 (14:30 -0500)
src/Main.hs

index 551dae752ae3343446716b520f0d13bb5274ed74..7a57dad3ad9179196dd1465cf16b29e38180106d 100644 (file)
@@ -6,37 +6,40 @@ where
 
 import Control.Concurrent.ParallelIO.Global (
    parallelInterleaved,
-   stopGlobalPool)
-import Control.Monad (unless)
+   stopGlobalPool )
+import Control.Monad ( unless )
 import qualified Data.ByteString.Char8 as BS (
   hGetContents,
   hPutStrLn,
   lines,
   null,
   pack,
-  readFile)
+  readFile )
 import Network.DNS (
   Domain,
   Resolver,
   ResolvConf(..),
   defaultResolvConf,
   makeResolvSeed,
-  withResolver)
-import Network.DNS.Lookup (lookupA, lookupMX)
-import System.Directory (doesFileExist)
-import System.Exit (exitWith, ExitCode(..))
+  withResolver )
+import Network.DNS.Lookup ( lookupA, lookupMX )
+import System.Directory ( doesFileExist )
+import System.Exit ( exitWith, ExitCode(..) )
 import System.IO (
   IOMode( WriteMode ),
   hClose,
   hFlush,
   openFile,
   stdin,
-  stdout)
+  stdout )
 
 
-import CommandLine (Args(..), get_args)
-import EmailAddress
-import ExitCodes (exit_input_file_doesnt_exist)
+import CommandLine ( Args(..), get_args )
+import EmailAddress(
+  Address,
+  parts,
+  validate_syntax )
+import ExitCodes ( exit_input_file_doesnt_exist )
 
 
 -- | Resolver parameters. We increase the default timeout from 3 to 10