Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
c3ff5f29
Commit
c3ff5f29
authored
Feb 07, 2014
by
Joachim Breitner
Browse files
Add test case for #8743
which only occurs when the instance being compiled is also present from a .hs-boot file.
parent
03200e8c
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/stranal/should_compile/T8743.hs
0 → 100644
View file @
c3ff5f29
module
T8743
where
-- Without the following import, it does not fail
import
{-#
SOURCE
#-
}
T8743
()
-- [()] required, () does not work.
class
ToRow
a
where
toRow
::
a
->
[
()
]
instance
ToRow
(
Maybe
a
)
where
toRow
Nothing
=
[
()
]
toRow
(
Just
_
)
=
[
()
]
testsuite/tests/stranal/should_compile/T8743.hs-boot
0 → 100644
View file @
c3ff5f29
module
T8743
where
class
ToRow
a
instance
ToRow
(
Maybe
a
)
testsuite/tests/stranal/should_compile/all.T
View file @
c3ff5f29
...
...
@@ -18,3 +18,5 @@ test('newtype', req_profiling, compile, ['-prof -auto-all'])
test
('
T1988
',
normal
,
compile
,
[''])
test
('
T8467
',
normal
,
compile
,
[''])
test
('
T8037
',
normal
,
compile
,
[''])
test
('
T8743
',
[
expect_broken
(
8743
),
extra_clean
(['
T8743.o-boot
',
'
T8743.hi-boot
'])
],
multimod_compile
,
['
T8743
',
'
-v0
'])
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