diff options
Diffstat (limited to 'lib/CommandLine.hs')
-rw-r--r-- | lib/CommandLine.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CommandLine.hs b/lib/CommandLine.hs index 55b77b3..ea5d6b8 100644 --- a/lib/CommandLine.hs +++ b/lib/CommandLine.hs | |||
@@ -286,6 +286,7 @@ vanilla flags = ArgsStyle { parseInvocation = parse flags } | |||
286 | -- | 286 | -- |
287 | -- * default polyvariadic - Implicit polyvariadic option if no other option is specified. | 287 | -- * default polyvariadic - Implicit polyvariadic option if no other option is specified. |
288 | -- | 288 | -- |
289 | fancy :: [([Char], Int)] -> [[Char]] -> [Char] -> ArgsStyle | ||
289 | fancy sargspsec polyVariadicArgs defaultPoly = ArgsStyle | 290 | fancy sargspsec polyVariadicArgs defaultPoly = ArgsStyle |
290 | { parseInvocation = parse sargspsec polyVariadicArgs defaultPoly } | 291 | { parseInvocation = parse sargspsec polyVariadicArgs defaultPoly } |
291 | where | 292 | where |
@@ -436,6 +437,7 @@ sortOn f = | |||
436 | #endif | 437 | #endif |
437 | #endif | 438 | #endif |
438 | 439 | ||
440 | removeIntersection :: Ord a => [a] -> [a] -> ([a], [a]) | ||
439 | removeIntersection (x:xs) (y:ys) | 441 | removeIntersection (x:xs) (y:ys) |
440 | | x == y = removeIntersection xs ys | 442 | | x == y = removeIntersection xs ys |
441 | | x < y = first (x :) $ removeIntersection xs (y:ys) | 443 | | x < y = first (x :) $ removeIntersection xs (y:ys) |