the embedded grammars now work with both the pure Haskell and the Haskell binding API

This commit is contained in:
Krasimir Angelov
2017-08-29 18:44:50 +02:00
parent 62e5852669
commit b7b7a7c91c
5 changed files with 13 additions and 5 deletions

View File

@@ -38,6 +38,7 @@ module PGF2 (-- * PGF
mkInt,unInt,
mkFloat,unFloat,
mkMeta,unMeta,
mkCId,
-- ** Types
Type, Hypo, BindType(..), startCat,
readType, showType,

View File

@@ -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 =