Skip to content

Instantly share code, notes, and snippets.

@mokshasoft
mokshasoft / Bug1.idr
Created May 12, 2020 06:10
Idris Gambit CG: Can't pass argument of type %World to foreign function
%foreign "C:applyFn,libsome"
prim_applyFnIO : (PrimIO ()) -> PrimIO ()
applyFnIO : (IO ()) -> IO ()
applyFnIO f = primIO $ prim_applyFnIO (toPrim f)
main : IO ()
main = applyFnIO $ putStrLn "hello"