From e64a5bcf387f6af38484a0fd8397394e0b295fe7 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Mon, 8 Mar 2021 22:58:15 +0100 Subject: [PATCH] adding an exemple link --- src/MyGetOpt.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MyGetOpt.hs b/src/MyGetOpt.hs index fba0553..48493c6 100644 --- a/src/MyGetOpt.hs +++ b/src/MyGetOpt.hs @@ -123,6 +123,7 @@ optionParser _ [] -- TODO Create a type OptionParser witch contains the short & long names & n args parsers. -- TODO Pattern match for the OptionParser or a default parser in the runParser. Option parser will check named args while the default one will do positional ones. +-- EXAMPLE: https://www.paolocapriotti.com/blog/2012/04/27/applicative-option-parser/ runParser :: Parser a -> [String] -> Maybe (a, [String]) runParser ::