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
Glasgow Haskell Compiler
GHC
Commits
49012a1f
Commit
49012a1f
authored
Jul 13, 2007
by
rl@cse.unsw.edu.au
Browse files
Add closedV
parent
29969878
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/vectorise/VectMonad.hs
View file @
49012a1f
module
VectMonad
(
VM
,
noV
,
tryV
,
maybeV
,
orElseV
,
localV
,
initV
,
noV
,
tryV
,
maybeV
,
orElseV
,
localV
,
closedV
,
initV
,
newLocalVar
,
newTyVar
,
Builtins
(
..
),
paDictTyCon
,
...
...
@@ -192,6 +192,14 @@ localV p = do
setLEnv
env
return
x
closedV
::
VM
a
->
VM
a
closedV
p
=
do
env
<-
readLEnv
id
setLEnv
emptyLocalEnv
x
<-
p
setLEnv
env
return
x
liftDs
::
DsM
a
->
VM
a
liftDs
p
=
VM
$
\
bi
genv
lenv
->
do
{
x
<-
p
;
return
(
Yes
genv
lenv
x
)
}
...
...
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