Created
June 25, 2014 12:28
-
-
Save denisshevchenko/294bf854f530611236fc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
instance Options MainOptions where | |
defineOptions = | |
MainOptions <$> defineOption optionType_bool a_help | |
<*> defineOption optionType_bool a_version | |
<*> defineOption optionType_string a_path | |
where a_help opt = opt { optionLongFlags = ["help"] | |
, optionShortFlags = ['h'] | |
} | |
a_version opt = opt { optionLongFlags = ["version"] | |
, optionShortFlags = ['v'] | |
} | |
a_path opt = opt { optionLongFlags = ["path"] | |
, optionShortFlags = ['p'] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment