Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
d378a01f
Commit
d378a01f
authored
Sep 15, 2006
by
bjorn@bringert.net
Browse files
Added test for ticket
#902
, deriving for GADTs which declare H98 types fails.
parent
fcb337f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/deriving/should_compile/all.T
View file @
d378a01f
...
...
@@ -9,4 +9,4 @@ test('drv008', normal, compile, [''])
test
('
drv009
',
normal
,
compile
,
[''])
test
('
drv010
',
normal
,
compile
,
[''])
test
('
drv011
',
normal
,
compile
,
[''])
test
('
drv012
',
normal
,
compile
,
[''])
testsuite/tests/ghc-regress/deriving/should_compile/drv012.hs
0 → 100644
View file @
d378a01f
{-# OPTIONS_GHC -fglasgow-exts #-}
-- !!! deriving for GADTs which declare Haskell98 data types.
-- bug reported as http://hackage.haskell.org/trac/ghc/ticket/902
module
ShouldSucceed
where
data
Maybe1
a
where
{
Nothing1
::
Maybe1
a
;
Just1
::
a
->
Maybe1
a
}
deriving
(
Eq
,
Ord
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment