In a case as simple as this
{-# LANGUAGE EmptyCase #-}
{-# OPTIONS_GHC -Wall -fmax-uncovered-patterns=99 #-}
module T where
foo :: Int
foo = case (_ :: Bool, _ :: Bool) of
where the diagnostic has good suggestions,
╔══════════════════════════════════════════════════╗
║ Pattern match(es) are non-exhaustive ║
║ In a case alternative: ║
║ Patterns of type ‘(Bool, Bool)’ not matched: ║
║ (False, False) ║
║ (False, True) ║
║ (True, False) ║
║ (True, True) [GHC-62161] ║
╚══════════════════════════════════════════════════╝
the completion is erroneous:
bar = case (_ :: Bool, _ :: Bool) of
(,) _ _ -> _
(,) _ _ -> _
(,) _ _ -> _
(,) _ _ -> _
In a case as simple as this
{-# LANGUAGE EmptyCase #-} {-# OPTIONS_GHC -Wall -fmax-uncovered-patterns=99 #-} module T where foo :: Int foo = case (_ :: Bool, _ :: Bool) ofwhere the diagnostic has good suggestions,
the completion is erroneous: