X-Git-Url: http://gitweb.michael.orlitzky.com/?p=spline3.git;a=blobdiff_plain;f=src%2FCommandLine.hs;h=c404890396156b519105cfb67dd7e48052f925fc;hp=f413e2fb214b98840795c8c5201b8d18df517104;hb=ce936039ed9ea446dd79544eb5b9cfd30a8188bd;hpb=380f69c2f37dc154c6f908fb893beb4bb1b185a6 diff --git a/src/CommandLine.hs b/src/CommandLine.hs index f413e2f..c404890 100644 --- a/src/CommandLine.hs +++ b/src/CommandLine.hs @@ -4,14 +4,14 @@ module CommandLine ( Args(..), apply_args, program_name, - show_help) + show_help ) where -- Get the version from Cabal. -import Paths_spline3 (version) -import Data.Version (showVersion) +import Paths_spline3 ( version ) +import Data.Version ( showVersion ) -import Data.String.Utils (startswith) +import Data.String.Utils ( startswith ) import System.Console.CmdArgs ( CmdArgs, Data, @@ -29,15 +29,14 @@ import System.Console.CmdArgs ( program, typ, summary, - versionArg - ) + versionArg ) -import System.Console.CmdArgs.Explicit (process) -import System.Environment (getArgs, withArgs) -import System.Exit (ExitCode(..), exitWith) -import System.IO (hPutStrLn, stderr) +import System.Console.CmdArgs.Explicit ( process ) +import System.Environment ( getArgs, withArgs ) +import System.Exit ( ExitCode(..), exitWith ) +import System.IO ( hPutStrLn, stderr ) -import ExitCodes +import ExitCodes ( exit_arg_parse_failed ) @@ -145,8 +144,8 @@ arg_spec = -- Infix notation won't work, the arguments are backwards! is_missing_arg_error :: String -> Bool -is_missing_arg_error s = - startswith "Requires at least" s +is_missing_arg_error = + startswith "Requires at least" show_help :: IO Args