Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,248
Issues
4,248
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
391
Merge Requests
391
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
7b73a751
Commit
7b73a751
authored
Apr 12, 2006
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test for SpecConstr + GADTs
parent
c732ea2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
testsuite/tests/ghc-regress/simplCore/should_compile/all.T
testsuite/tests/ghc-regress/simplCore/should_compile/all.T
+1
-0
testsuite/tests/ghc-regress/simplCore/should_compile/simpl014.hs
...te/tests/ghc-regress/simplCore/should_compile/simpl014.hs
+29
-0
No files found.
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