git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
All you need is nub. Fix #1582
commit2704b3816bd919146e2f3b6bce594f22364bd18e authorPhil Freeman <paf31@cantab.net> dateWed 28 Oct 2015, 17:33 (11 years ago) parenta70e397
1 file changed+1−1
src/Language/PureScript/Linter/Exhaustive.hs+1−1
src/Language/PureScript/Linter/Exhaustive.hs+1−1
@@ -246,7 +246,7 @@ checkExhaustive env mn numArgs cas = makeResult . first nub $ foldl' step ([init
246246 step :: ([[Binder]], (Either RedudancyError Bool, [[Binder]])) -> CaseAlternative -> ([[Binder]], (Either RedudancyError Bool, [[Binder]]))
247247 step (uncovered, (nec, redundant)) ca =
248248 let (missed, pr) = unzip (map (missingAlternative env mn ca) uncovered)
249− (missed', approx) = splitAt 10000 (concat missed)
249+ (missed', approx) = splitAt 10000 (nub (concat missed))
250250 cond = liftA2 (&&) (or <$> sequenceA pr) nec
251251 in (missed', ( if null approx
252252 then cond