GHC Trac Home
GHC Home
Joining In
Working on GHC
Mailing Lists & IRC
GHC Contributors
Documentation
Status Reports
Repositories
Building Guide
Commentary
Debugging
View Tickets
All Bugs
All Tasks
All Feature Req's
All Proposals
My Tickets
Tickets I Created
By Milestone
By OS
By Architecture
Patches for review
Create Ticket
New Bug
New Task
New Feature Req
Wiki
Title Index
Recent Changes
Wiki Notes
Search:
Login
Help/Guide
About Trac
Register
Forgot your password?
Preferences
Wiki
Timeline
Roadmap
View Tickets
Dashboard
Blog
Context Navigation
Back to Ticket #4371
Ticket #4371
: panic.hs
File panic.hs,
230 bytes
(added by mafo,
3 years
ago)
produce a ghc panic
Line
1
{-# LANGUAGE ViewPatterns,DeriveDataTypeable #-}
2
import
Data.Typeable
3
4
data
E1
=
E1
deriving
Typeable
5
data
E2
=
E2
deriving
Typeable
6
7
f
::
Typeable
a
=>
a
->
()
8
f
x
=
case
x
of
9
(
cast
->
Just
E1
)
->
()
10
(
cast
->
Just
E2
)
->
()
11
Download in other formats:
Original Format