git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #1584 from purescript/1582

Fix #1582

commitacab6ab7ffb0859d08132710fa3e23f60eb8111b authorPhil Freeman <paf31@cantab.net> dateWed 28 Oct 2015, 19:28 (11 years ago) parenta70e3972704b38
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