summaryrefslogtreecommitdiff
path: root/compiler/GHC/Utils/Misc.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/Utils/Misc.hs')
-rw-r--r--compiler/GHC/Utils/Misc.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/GHC/Utils/Misc.hs b/compiler/GHC/Utils/Misc.hs
index 6597328ace..fac61775ff 100644
--- a/compiler/GHC/Utils/Misc.hs
+++ b/compiler/GHC/Utils/Misc.hs
@@ -556,9 +556,8 @@ isSingleton :: [a] -> Bool
isSingleton [_] = True
isSingleton _ = False
-notNull :: [a] -> Bool
-notNull [] = False
-notNull _ = True
+notNull :: Foldable f => f a -> Bool
+notNull = not . null
only :: [a] -> a
#if defined(DEBUG)