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
Shayne Fletcher
Glasgow Haskell Compiler
Commits
0fbdefa7
Commit
0fbdefa7
authored
Jan 07, 2008
by
simonpj
Browse files
Test for Trac #2017
parent
cf86ebae
Changes
2
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/th/TH_spliceGuard.hs
0 → 100644
View file @
0fbdefa7
{-# OPTIONS_GHC -XTemplateHaskell #-}
-- Trac #2017
module
ShouldCompile
where
import
Language.Haskell.TH
$
(
do
e
<-
[
d
|
f a b
| a == b = a
| otherwise = b
|]
return
e
)
testsuite/tests/ghc-regress/th/all.T
View file @
0fbdefa7
...
...
@@ -13,6 +13,7 @@ test('TH_repE1', normal, compile, [''])
test
('
TH_repE2
',
normal
,
compile_and_run
,
[''])
test
('
TH_repE3
',
normal
,
compile
,
[''])
test
('
TH_repPrim
',
normal
,
compile
,
['
-v0
'])
test
('
TH_spliceGuard
',
normal
,
compile
,
['
-v0
'])
test
('
TH_repPrimOutput
',
normal
,
compile_and_run
,
[''])
test
('
TH_repGuard
',
normal
,
compile
,
['
-v0
'])
test
('
TH_repGuardOutput
',
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