Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
1223c385
Commit
1223c385
authored
Nov 12, 2008
by
Ian Lynagh
Browse files
Add a test that $( (\b -> [| b |]) True ) works
parent
d33dc999
Changes
2
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/th/TH_spliceE6.hs
0 → 100644
View file @
1223c385
{-# LANGUAGE TemplateHaskell #-}
-- This failed in 6.10.1, as the Name's for True and False in
-- Language.Haskell.TH.Syntax.{trueName,falseName} were wrong.
module
TH_spliceE6
where
a
=
$
(
(
\
b
->
[
|
b
|
])
True
)
b
=
$
(
(
\
m
->
[
|
m
|
])
(
Just
'm'
)
)
c
=
$
(
(
\
e
->
[
|
e
|
])
(
Left
'e'
::
Either
Char
Bool
)
)
testsuite/tests/ghc-regress/th/all.T
View file @
1223c385
...
...
@@ -25,6 +25,8 @@ test('TH_spliceE5',
multimod_compile_and_run
,
['
TH_spliceE5.hs
',
'
-v0
'])
test
('
TH_spliceE6
',
normal
,
compile
,
['
-v0
'])
# Testing profiling with TH is a bit tricky; we've already disabled
# the prof way above, and also we want to add options specifically for
# profiling (-osuf p_o) because this is necessary when mixing
...
...
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