Fixes for GHC 8.x, archive loading, -dynamic, and file generation
This commit is contained in:
@ -1,12 +1,13 @@
|
||||
|
||||
import System.Plugins
|
||||
|
||||
import API
|
||||
|
||||
main = do
|
||||
m_v <- dynload "../TestIO.o" ["../api"]
|
||||
[] "resource_dyn"
|
||||
case m_v of
|
||||
LoadFailure _ -> error "couldn't compile"
|
||||
LoadSuccess _ v -> do
|
||||
s <- field v
|
||||
if s /= [] then print True else print False
|
||||
m_v <- dynload "../TestIO.o" ["../api"]
|
||||
[] "resource_dyn" :: IO (LoadStatus TestIO)
|
||||
case m_v of
|
||||
LoadFailure _ -> error "couldn't link"
|
||||
LoadSuccess _ v -> do
|
||||
s <- field v
|
||||
if s /= "" then print True else print False
|
||||
|
Reference in New Issue
Block a user