@@ -74,7 +74,7 @@ toFDescRet tm
74 = toFDescBase b
74 = toFDescBase b
75 | (P _ io _, [_,_,_,b]) <- unApply tm,
75 | (P _ io _, [_,_,_,b]) <- unApply tm,
76 io == sNS (sUN "FFI_IO") ["FFI_Export"]
76 io == sNS (sUN "FFI_IO") ["FFI_Export"]
77− = toFDescBase b
77+ = FIO $ toFDescBase b
78 | (P _ fun _, [_,_,_,_,_,t]) <- unApply tm,
78 | (P _ fun _, [_,_,_,_,_,t]) <- unApply tm,
79 fun == sNS (sUN "FFI_Fun") ["FFI_Export"]
79 fun == sNS (sUN "FFI_Fun") ["FFI_Export"]
80 = toFDescRet t
80 = toFDescRet t
@@ -92,9 +92,6 @@ toFDescBase tm
93toFDescArgs :: Term -> [FDesc]
93toFDescArgs :: Term -> [FDesc]
94toFDescArgs tm
94toFDescArgs tm
95− | (P _ io _, [_,_,_,b]) <- unApply tm,
96− io == sNS (sUN "FFI_IO") ["FFI_Export"]
97− = [FWorld] -- World, unused but needed explicitly as an argument
98 | (P _ fun _, [_,_,_,_,b,t]) <- unApply tm,
95 | (P _ fun _, [_,_,_,_,b,t]) <- unApply tm,
99 fun == sNS (sUN "FFI_Fun") ["FFI_Export"]
96 fun == sNS (sUN "FFI_Fun") ["FFI_Export"]
100 = toFDescBase b : toFDescArgs t
97 = toFDescBase b : toFDescArgs t