diff options
author | defanor <defanor@uberspace.net> | 2017-12-24 07:12:59 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2017-12-24 07:12:59 +0300 |
commit | 2581f4b9a61d8ca4c782269886c30b3cc433d85d (patch) | |
tree | ccdcb609ab9247706cbc012e2bf8abb47a3678af /Coalpit.hs | |
parent | 1d68da2eb258a1f426184989832208c75cac1f50 (diff) |
Introduce 'Usage' structure.
Produce it with 'argHelper' first, then translate into a string -- so
that it can be reused for other kinds of output, such as roff and
texinfo.
Diffstat (limited to 'Coalpit.hs')
-rw-r--r-- | Coalpit.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -29,7 +29,7 @@ main = do case 'fromArgs' 'defOpt' args of Left err -> do putStrLn err - putStrLn $ "Usage: " ++ 'usage' 'defOpt' (Proxy :: Proxy Foo) + putStrLn $ "Usage: " ++ 'usageString' 'defOpt' (Proxy :: Proxy Foo) Right x -> do print (x :: Foo) print $ 'toArgs' 'defOpt' x |