문제

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

도움이 되었습니까?

해결책

Apparently Plugins is considered broken. Changing to hint (Example in git repository) works flawless

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top