+-- | Find the given function in the current session
+getFunc :: HsFunction -> VHDLState (Maybe FuncData)
+getFunc hsfunc = do
+ fs <- State.gets funcs -- Get the funcs element from the session
+ return $ lookup hsfunc fs
+
+getModule :: VHDLState HscTypes.CoreModule
+getModule = State.gets coreMod -- Get the coreMod element from the session
+