summaryrefslogtreecommitdiff
path: root/src/runtime/haskell-bind
diff options
context:
space:
mode:
authorKrasimir Angelov <kr.angelov@gmail.com>2017-08-29 18:44:50 +0200
committerKrasimir Angelov <kr.angelov@gmail.com>2017-08-29 18:44:50 +0200
commitb7b7a7c91cc861440dd541b5f4e9eb5b409bcce0 (patch)
tree352d48f11bea696fe257839f8f7dcf8e6b386fce /src/runtime/haskell-bind
parent62e5852669fc351d41d1c895822fd7e2cbddf803 (diff)
the embedded grammars now work with both the pure Haskell and the Haskell binding API
Diffstat (limited to 'src/runtime/haskell-bind')
-rw-r--r--src/runtime/haskell-bind/PGF2.hsc1
-rw-r--r--src/runtime/haskell-bind/PGF2/Expr.hsc3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/haskell-bind/PGF2.hsc b/src/runtime/haskell-bind/PGF2.hsc
index 1d9d82f90..40d485b9a 100644
--- a/src/runtime/haskell-bind/PGF2.hsc
+++ b/src/runtime/haskell-bind/PGF2.hsc
@@ -38,6 +38,7 @@ module PGF2 (-- * PGF
mkInt,unInt,
mkFloat,unFloat,
mkMeta,unMeta,
+ mkCId,
-- ** Types
Type, Hypo, BindType(..), startCat,
readType, showType,
diff --git a/src/runtime/haskell-bind/PGF2/Expr.hsc b/src/runtime/haskell-bind/PGF2/Expr.hsc
index 5b67ba097..af3afeef5 100644
--- a/src/runtime/haskell-bind/PGF2/Expr.hsc
+++ b/src/runtime/haskell-bind/PGF2/Expr.hsc
@@ -176,6 +176,9 @@ unMeta (Expr expr touch) =
touch
return (Just (fromIntegral (id :: CInt)))
+-- | this functions is only for backward compatibility with the old Haskell runtime
+mkCId x = x
+
-- | parses a 'String' as an expression
readExpr :: String -> Maybe Expr
readExpr str =