Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
7b73a751
Commit
7b73a751
authored
Apr 12, 2006
by
simonpj
Browse files
Add a test for SpecConstr + GADTs
parent
c732ea2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/simplCore/should_compile/all.T
View file @
7b73a751
...
...
@@ -14,6 +14,7 @@ test('simpl010', normal, compile, [''])
test
('
simpl011
',
normal
,
compile
,
[''])
test
('
simpl012
',
normal
,
compile
,
[''])
test
('
simpl013
',
normal
,
compile
,
[''])
test
('
simpl014
',
normal
,
compile
,
[''])
test
('
spec001
',
skip_if_fast
,
compile
,
[''])
testsuite/tests/ghc-regress/simplCore/should_compile/simpl014.hs
0 → 100644
View file @
7b73a751
{-# OPTIONS -fglasgow-exts -O2 #-}
-- This one make SpecConstr generate bogus code (hence -O2),
-- with a lint error, in GHC 6.4.1
-- C.f. http://hackage.haskell.org/trac/ghc/ticket/737
module
ShouldCompile
where
data
IHandler
st
where
IHandler
::
forall
st
ev
res
.
Serialize
(
TxContext
ev
)
=>
String
->
IO
ev
->
(
res
->
IO
()
)
->
Ev
st
ev
res
->
IHandler
st
data
Ev
st
ev
res
=
Ev
data
TxContext
evt
=
TxContext
data
TxConfig
=
TxConfig
data
M
a
=
M
a
class
Serialize
a
where
instance
Serialize
a
=>
Serialize
(
TxContext
a
)
instance
Serialize
Int
instance
Serialize
()
data
IHR
st
=
forall
res
ev
.
Serialize
(
TxContext
ev
)
=>
IHR
(
TxContext
ev
)
runHandler
::
M
(
IHR
st
)
->
IHandler
st
->
IO
()
runHandler
queue
ih
@
(
IHandler
tstring
inp
out
run
)
=
runHandler
queue
ih
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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