X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=TranslatorTypes.hs;h=40529ea078d5e46805af27517a070450924c3638;hb=059c20c7b953a21097939a47ecac7f6cad05541a;hp=d50881600a11b9ec83d8a6ec7b83baa609bc0139;hpb=d848abec1bd08f24dd4d1c24ff694101c9ded360;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/TranslatorTypes.hs b/TranslatorTypes.hs index d508816..40529ea 100644 --- 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