Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
fd9bfbd5
Commit
fd9bfbd5
authored
Dec 23, 2011
by
Simon Peyton Jones
Browse files
Test Trac #5712
parent
6b90fe44
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/deriving/should_run/T5712.hs
0 → 100644
View file @
fd9bfbd5
{-# LANGUAGE GADTs #-}
module
Main
where
infix
5
:*:
data
T
a
where
(
:*:
)
::
Int
->
a
->
T
a
(
:+:
)
::
Char
->
T
a
->
T
a
deriving
(
Show
)
-- The Show should print (:*:) infix, but (:+:) prefix,
-- since it lacks a fixity declaration
main
=
print
(
'x'
:+:
(
3
:*:
True
))
testsuite/tests/deriving/should_run/T5712.stdout
0 → 100644
View file @
fd9bfbd5
(:+:) 'x' (3 :*: True)
testsuite/tests/deriving/should_run/all.T
View file @
fd9bfbd5
...
@@ -33,4 +33,5 @@ test('T4136', normal, compile_and_run, [''])
...
@@ -33,4 +33,5 @@ test('T4136', normal, compile_and_run, [''])
test
('
T4528a
',
normal
,
compile_and_run
,
[''])
test
('
T4528a
',
normal
,
compile_and_run
,
[''])
test
('
T5041
',
normal
,
compile_and_run
,
[''])
test
('
T5041
',
normal
,
compile_and_run
,
[''])
test
('
T5628
',
exit_code
(
1
),
compile_and_run
,
[''])
test
('
T5628
',
exit_code
(
1
),
compile_and_run
,
[''])
test
('
T5712
',
normal
,
compile_and_run
,
[''])
Write
Preview
Supports
Markdown
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