summaryrefslogtreecommitdiff
path: root/Example.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Example.hs')
-rw-r--r--Example.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Example.hs b/Example.hs
index 4784aa2..a5dcb35 100644
--- a/Example.hs
+++ b/Example.hs
@@ -29,7 +29,7 @@ main = do
, fooBar = Just (Foo FooArgs { arg1 = 1
, arg2 = "a string"})
, fooBar2 = Bar}
- args = toArgs defMod val
+ args = toArgs defOpt val
print val
print args
- print (fromArgs defMod args :: Either String Input)
+ print (fromArgs defOpt args :: Either String Input)