summaryrefslogtreecommitdiff
path: root/Coalpit.hs
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2017-12-24 07:12:59 +0300
committerdefanor <defanor@uberspace.net>2017-12-24 07:12:59 +0300
commit2581f4b9a61d8ca4c782269886c30b3cc433d85d (patch)
treeccdcb609ab9247706cbc012e2bf8abb47a3678af /Coalpit.hs
parent1d68da2eb258a1f426184989832208c75cac1f50 (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.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Coalpit.hs b/Coalpit.hs
index 78be85e..cd6e69b 100644
--- a/Coalpit.hs
+++ b/Coalpit.hs
@@ -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