From c7bcd017110b05af99e72b7bbcc232368f22dda7 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Thu, 4 Jul 2019 11:08:34 -0400 Subject: Add HasDebugCallStack to unionLists This should help identify a few cases where this is throwing warnings --- compiler/utils/ListSetOps.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/utils/ListSetOps.hs b/compiler/utils/ListSetOps.hs index cad8cd9583..8078d5603e 100644 --- a/compiler/utils/ListSetOps.hs +++ b/compiler/utils/ListSetOps.hs @@ -53,7 +53,7 @@ deleteBys eq xs ys = foldl' (flip (deleteBy eq)) xs ys -- | Assumes that the arguments contain no duplicates -unionLists :: (Outputable a, Eq a) => [a] -> [a] -> [a] +unionLists :: (HasDebugCallStack, Outputable a, Eq a) => [a] -> [a] -> [a] -- We special case some reasonable common patterns. unionLists xs [] = xs unionLists [] ys = ys -- cgit v1.2.1