mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-04 03:15:26 -07:00
readExpr needs an additional call to mask_
This commit is contained in:
1 parent
3c8e96c3cd
commit
6c06a9f295
1 file changed
+2
-1
@@ -280,7 +280,8 @@ readExpr :: String -> Maybe Expr
|
|||||||
readExpr str =
|
readExpr str =
|
||||||
unsafePerformIO $
|
unsafePerformIO $
|
||||||
withText str $ \c_str ->
|
withText str $ \c_str ->
|
||||||
withForeignPtr unmarshaller $ \u -> do
|
withForeignPtr unmarshaller $ \u ->
|
||||||
|
mask_ $ do
|
||||||
c_expr <- pgf_read_expr c_str u
|
c_expr <- pgf_read_expr c_str u
|
||||||
if c_expr == castPtrToStablePtr nullPtr
|
if c_expr == castPtrToStablePtr nullPtr
|
||||||
then return Nothing
|
then return Nothing
|
||||||
|
|||||||
Reference in new issue
Block a user