Modifying 'plugins' with diff:
diff --git a/src/System/Plugins/Load.hs b/src/System/Plugins/Load.hs
index 7aeb565..5da1493 100644
--- a/src/System/Plugins/Load.hs
+++ b/src/System/Plugins/Load.hs
@@ -559,7 +559,7 @@ loadObject' p ky k
exists <- doesFileExist hifile
hiface <- if exists then readBinIface' hifile else return undefined
let m = emptyMod p hiface
- addModule k m
+ --addModule k m
return m
where emptyMod q hiface = Module q (mkModid q) Vanilla hiface kyResulting in error:
GHC runtime linker: fatal error: I found a duplicate definition for symbol
Profile_resource_closure
whilst processing object file
/tmp/plugintest-eeebc19bc3c3c8b3/Profile.o
The symbol was previously defined in
/tmp/plugintest-f1e846cddceeb5b0/Profile.o
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
hs-dynload-experiment: user error (Could not load module or package `/tmp/plugintest-eeebc19bc3c3c8b3/Profile.o')