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
0b9beed3
Commit
0b9beed3
authored
Jul 03, 2006
by
simonpj
Browse files
Test Trac bug
#795
parent
216da4dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/typecheck/should_compile/all.T
View file @
0b9beed3
...
...
@@ -213,6 +213,7 @@ test('tc200', normal, compile, [''])
test
('
tc201
',
normal
,
compile
,
[''])
test
('
tc202
',
normal
,
compile
,
[''])
test
('
tc203
',
normal
,
compile
,
[''])
test
('
tc204
',
normal
,
compile
,
[''])
# Omitting temporarily
# test('syn-perf', normal, compile, ['-fcontext-stack=30'])
...
...
testsuite/tests/ghc-regress/typecheck/should_compile/tc204.hs
0 → 100644
View file @
0b9beed3
{-# OPTIONS -fglasgow-exts -dcore-lint #-}
-- The dict-bindings attached to an IPBinds
-- need not be in recursive order. This is
-- a long-standing bug, which lasted up to
-- and including GHC 6.4.2
module
Bug795
(
foo
)
where
data
Arg
=
E
Integer
|
T
Bool
deriving
(
Eq
,
Show
)
foo
::
Integer
->
[
Arg
]
->
IO
String
foo
1
as
=
do
{
let
?
err
=
"my custom error"
;
let
ws
=
(
show
(
firstE
as
))
;
return
(
show
(
firstE
as
))
}
firstE
::
(
?
err
::
String
)
=>
[
Arg
]
->
Integer
firstE
=
error
"urk"
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