From 0e49c28e5bfcf438818aca731071fdf707a3e2ce Mon Sep 17 00:00:00 2001 From: krasimir Date: Thu, 26 Jan 2017 18:41:07 +0000 Subject: API for computing the Haskell binding --- src/runtime/haskell-bind/PGF2/FFI.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/runtime/haskell-bind/PGF2') diff --git a/src/runtime/haskell-bind/PGF2/FFI.hs b/src/runtime/haskell-bind/PGF2/FFI.hs index 5ae2ced06..35aa7fa84 100644 --- a/src/runtime/haskell-bind/PGF2/FFI.hs +++ b/src/runtime/haskell-bind/PGF2/FFI.hs @@ -301,6 +301,8 @@ foreign import ccall "pgf/expr.h pgf_infer_expr" foreign import ccall "pgf/expr.h pgf_check_type" pgf_check_type :: Ptr PgfPGF -> Ptr PgfType -> Ptr GuExn -> Ptr GuPool -> IO () +foreign import ccall "pgf/expr.h pgf_compute" + pgf_compute :: Ptr PgfPGF -> PgfExpr -> Ptr GuExn -> Ptr GuPool -> Ptr GuPool -> IO PgfExpr foreign import ccall "pgf/expr.h pgf_print_expr" pgf_print_expr :: PgfExpr -> Ptr PgfPrintContext -> CInt -> Ptr GuOut -> Ptr GuExn -> IO () -- cgit v1.2.3