
24 Feb
2014
24 Feb
'14
8:12 a.m.
Im using the plugins library and am unable get it to work with user defined types. I.e. evaluating the string "id :: Int -> Int" works, but "id :: Test -> Test" yield the runtime-error. test: /tmp/MXXXXX27601.o: unknown symbol `testdzm0zi0zi0_DataziTestD_zdfTypeableTestD_closure' I have created a small compiling example of the bug here https://github.com/fabianbergmark/plugins-bug I have tried to move the data-type to a separate library without success. Curiously, loading the library exposing the data-type in GHCi, and running eval "id :: Test -> Test" works and yields the correct result.