[ ghc-Bugs-1236718 ] TcSimplify.lhs:(2093, 13)-(2094,
38): Non-exhaustive patterns
SourceForge.net
noreply at sourceforge.net
Tue Jul 12 09:48:31 EDT 2005
Bugs item #1236718, was opened at 2005-07-12 06:48
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1236718&group_id=8032
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Compiler (Type checker)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: TcSimplify.lhs:(2093,13)-(2094,38): Non-exhaustive patterns
Initial Comment:
Dear ghc developers,
instead of giving some kind of 'unresolved overloading'
error message, the following code
% cat Bug.hs
{-# OPTIONS_GHC -fglasgow-exts #-}
module Bug where
class Foo a
instance Foo (a -> b)
foo :: Foo a => a -> ()
foo = undefined
class Bar a r
-- The same happens if we use fundeps:
-- class Bar a r | r -> a
bar :: Bar a r => r -> ()
bar = undefined
test = foo bar
causes ghc to panic:
% ghc Bug.hs
ghc-6.5.20050709: panic! (the `impossible' happened,
GHC version 6.5.20050709):
typecheck/TcSimplify.lhs:(2093,13)-(2094,38):
Non-exhaustive patterns in case
Best regards,
Thomas Jäger
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1236718&group_id=8032
More information about the Glasgow-haskell-bugs
mailing list