1
0
forked from GitHub/gf-core

implemented nonExist

This commit is contained in:
krangelov
2021-12-01 14:10:34 +01:00
parent 7e1a2447c2
commit 15c03816ea
4 changed files with 23 additions and 7 deletions

View File

@@ -584,7 +584,9 @@ linearize c e =
bracket (newStablePtr e) freeStablePtr $ \c_e ->
withForeignPtr marshaller $ \m ->
bracket (withPgfExn "linearize" (pgf_linearize (c_db c) c_revision c_e m)) free $ \c_text ->
peekText c_text
if c_text == nullPtr
then return ""
else peekText c_text
-- | Generates all possible linearizations of an expression
linearizeAll :: Concr -> Expr -> [String]