Timeout
ghc-options:
- -Wall
- -fwarn-hi-shadowing
- -fwarn-missing-signatures
- -fwarn-name-shadowing
- -fwarn-orphans
- -fwarn-type-defaults
- -fwarn-tabs
- -fwarn-incomplete-record-updates
- -fwarn-monomorphism-restriction
- -fwarn-unused-do-bind
+ -Weverything
+ -Wno-implicit-prelude
+ -Wno-safe
+ -Wno-unsafe
+ -Wno-all-missed-specialisations
-rtsopts
-threaded
-optc-O3
-- It's not entirely clear to me why I have to reproduce all of this.
ghc-options:
- -Wall
- -fwarn-hi-shadowing
- -fwarn-missing-signatures
- -fwarn-name-shadowing
- -fwarn-orphans
- -fwarn-type-defaults
- -fwarn-tabs
- -fwarn-incomplete-record-updates
- -fwarn-monomorphism-restriction
- -fwarn-unused-do-bind
+ -Weverything
+ -Wno-implicit-prelude
+ -Wno-safe
+ -Wno-unsafe
+ -Wno-all-missed-specialisations
-rtsopts
-threaded
-optc-O3
import Paths_haeredes (version)
import Data.Version (showVersion)
-import Timeout (Timeout(..))
+import Timeout (Timeout(seconds))
-- | Description of the 'NS' mode.
normalize,
normalizeCase,
withResolver )
-import System.Exit (ExitCode(..), exitWith)
+import System.Exit (ExitCode(ExitFailure), exitWith)
import System.IO (hPutStrLn, stderr)
-
-import CommandLine (Args(..), get_args)
+import CommandLine (
+ Args(NS,MX,delegates,no_append_root,server,timeout),
+ get_args)
import DNS (
LookupResult,
lookupMX',
lookupNS',
resolve_address )
import ExitCodes (exit_bad_server)
-import Timeout (Timeout(..))
+import Timeout (Timeout(seconds))
-- | Given a list of delegates, report results for this
where
import Data.Data (Data)
-import System.Console.CmdArgs.Default (Default(..))
+import System.Console.CmdArgs.Default (Default(def))
newtype Timeout =
Timeout { seconds :: Int }
module Main
where
-import Test.DocTest
+import Test.DocTest (doctest)
import System.FilePath.Find ((==?), always, extension, find)
find_sources :: IO [FilePath]