projects
/
matthijs
/
master-project
/
cλash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d848abe
)
Add a getFuncMap accessor for VHDLState.
author
Matthijs Kooijman
<m.kooijman@student.utwente.nl>
Fri, 6 Mar 2009 10:23:00 +0000
(11:23 +0100)
committer
Matthijs Kooijman
<m.kooijman@student.utwente.nl>
Fri, 6 Mar 2009 10:23:00 +0000
(11:23 +0100)
TranslatorTypes.hs
patch
|
blob
|
history
diff --git
a/TranslatorTypes.hs
b/TranslatorTypes.hs
index d50881600a11b9ec83d8a6ec7b83baa609bc0139..40529ea078d5e46805af27517a070450924c3638 100644
(file)
--- a/
TranslatorTypes.hs
+++ b/
TranslatorTypes.hs
@@
-76,6
+76,10
@@
modFunc :: (FuncData -> FuncData) -> HsFunction -> VHDLState ()
modFunc f hsfunc =
modFuncMap (Map.adjust f hsfunc)
+-- | Get the map of functions in the session
+getFuncMap :: VHDLState FuncMap
+getFuncMap = State.gets funcs
+
-- | Modify the function map in the session using the given function
modFuncMap :: (FuncMap -> FuncMap) -> VHDLState ()
modFuncMap f = do