mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
readExpr needs an additional call to mask_
This commit is contained in:
@@ -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