summaryrefslogtreecommitdiff
path: root/lib/CommandLine.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CommandLine.hs')
-rw-r--r--lib/CommandLine.hs2
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--
289fancy :: [([Char], Int)] -> [[Char]] -> [Char] -> ArgsStyle
289fancy sargspsec polyVariadicArgs defaultPoly = ArgsStyle 290fancy 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
440removeIntersection :: Ord a => [a] -> [a] -> ([a], [a])
439removeIntersection (x:xs) (y:ys) 441removeIntersection (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)