File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,8 +76,8 @@ manyTill1 p end = do
7676 rest <- manyTill p end
7777 return $ first : rest
7878
79- -- | @skipUntil p@ ignores everything that comes before `p` .
80- -- Returns what `p` returns.
79+ -- | @skipUntil p@ ignores everything that comes before @p@ .
80+ -- Returns what @p@ returns.
8181skipUntil :: Show a => CharParser u a -> CharParser u ()
8282skipUntil p = skipMany (notFollowedBy p >> anyChar)
8383
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ notPresent = (not .) . isPresent
107107-- > Usage:
108108-- > prog <required>
109109--
110- -- then @getArg args (argument \' required\' )@ is guaranteed to be a 'Just'.
110+ -- then @getArg args (argument " required" )@ is guaranteed to be a 'Just'.
111111getArg :: Arguments -> Option -> Maybe String
112112getArg args opt =
113113 case opt `M.lookup` args of
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ pUsagePatterns = do
158158-- * Option Synonyms & Defaults Parsers
159159
160160-- | Succeeds only on the first line of an option explanation
161- -- (one whose first non-space character is '-' )
161+ -- (one whose first non-space character is @\'-\'@ )
162162begOptionLine :: CharParser OptInfoMap String
163163begOptionLine = inlineSpaces >> lookAhead (char ' -' ) >> return " -"
164164
@@ -256,8 +256,11 @@ canRepeat pat target =
256256-- | Compare on specificity of parsers built from optA and optB,
257257-- so we can be sure the parser tries the most-specific first, where possible.
258258-- E.g.
259- -- LongOption "option" > ShortOption 'o' == True
260- -- Command "cmd" > Argument "arg" == True
259+ --
260+ -- @
261+ -- LongOption "option" > ShortOption \'o\' == True
262+ -- Command "cmd" > Argument "arg" == True
263+ -- @
261264compareOptSpecificity :: Option -> Option -> Ordering
262265compareOptSpecificity optA optB = case optA of
263266 LongOption a -> case optB of
You can’t perform that action at this time.
0 commit comments