Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
518c56d8
Commit
518c56d8
authored
Feb 01, 2013
by
ian@well-typed.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test for
#2222
parent
79a6a7a4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
0 deletions
+42
-0
testsuite/tests/th/T2222.hs
testsuite/tests/th/T2222.hs
+36
-0
testsuite/tests/th/T2222.stderr
testsuite/tests/th/T2222.stderr
+5
-0
testsuite/tests/th/all.T
testsuite/tests/th/all.T
+1
-0
No files found.
testsuite/tests/th/T2222.hs
0 → 100644
View file @
518c56d8
{-# LANGUAGE TemplateHaskell #-}
module
ReifyPlusTypeInferenceBugs
where
import
Language.Haskell.TH
import
System.IO
a
=
1
b
=
$
(
do
VarI
_
t
_
_
<-
reify
'a
runIO
$
putStrLn
(
"inside b: "
++
pprint
t
)
[
|
undefined
|
])
c
=
$
([
|
True
|
])
d
=
$
(
do
VarI
_
t
_
_
<-
reify
'c
runIO
$
putStrLn
(
"inside d: "
++
pprint
t
)
[
|
undefined
|
]
)
$
(
do
VarI
_
t
_
_
<-
reify
'c
runIO
$
putStrLn
(
"type of c: "
++
pprint
t
)
return
[]
)
e
=
$
([
|
True
|
])
f
=
$
(
do
VarI
_
t
_
_
<-
reify
'e
runIO
$
putStrLn
(
"inside f: "
++
pprint
t
)
[
|
undefined
|
]
)
$
(
do
VarI
_
t
_
_
<-
reify
'e
runIO
$
putStrLn
(
"type of e: "
++
pprint
t
)
return
[]
)
$
(
runIO
$
do
hFlush
stdout
hFlush
stderr
return
[]
)
testsuite/tests/th/T2222.stderr
0 → 100644
View file @
518c56d8
inside d: t_0
inside b: a_0
type of c: GHC.Types.Bool
inside f: GHC.Types.Bool
type of e: GHC.Types.Bool
testsuite/tests/th/all.T
View file @
518c56d8
...
@@ -267,3 +267,4 @@ test('T7532',
...
@@ -267,3 +267,4 @@ test('T7532',
extra_clean
(['
T7532a.hi
',
'
T7532a.o
']),
extra_clean
(['
T7532a.hi
',
'
T7532a.o
']),
multimod_compile
,
multimod_compile
,
['
T7532
',
'
-v0
'])
['
T7532
',
'
-v0
'])
test
('
T2222
',
normal
,
compile
,
['
-v0
'])
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