-> PersistentLinkerState
-> IO PersistentLinkerState
+#ifdef GHCI
unload Batch dflags linkables pls = return pls
unload Interactive dflags linkables pls
= do new_loaded <- filterM maybeUnload (objects_loaded pls)
| otherwise -> return True
where
unloadObjs = mapM unloadObj [ f | DotO f <- objs ]
-
+#else
+unload = panic "CmLink.unload: no interpreter"
+#endif
-----------------------------------------------------------------------------
-- Linking
#ifndef GHCI
linkObjs = panic "CmLink.linkObjs: no interpreter"
-unload = panic "CmLink.unload: no interpreter"
lookupClosure = panic "CmLink.lookupClosure: no interpreter"
#else
linkObjs [] pls = linkFinish pls []