Apparently Plugins is considered broken. Changing to hint (Example in git repository) works flawless
Question
Im using the plugins library, trying to evaluate the string
eval "id :: Test -> Test" ["Data.Test"]
where Test is
module Data.Test where
import Prelude
import Data.Typeable
data Test = TestRec { testString :: String }
deriving (Show)
deriving instance Typeable Test
I have added Data.Test to exposed modules in my .cabal file and installed the module.
However, when i run the above code I get an error
api: /tmp/MXXXXX22793.o: unknown symbol `apizm0zi0zi0_DataziTest_zdfTypeableTest_closure'
Any idea why this happens?
GHC version: 7.6.3 plugins version: 1.5.4.0
Edit: I have created a small compiling example of the bug: https://github.com/fabianbergmark/plugins-bug.git
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow