forked from GitHub/gf-core
first draft of the new allocator with transactions support
This commit is contained in:
@@ -136,4 +136,4 @@ importSource opts files = lift0 $ GF.importSource opts files
|
||||
link opts pgf src = lift0 $ GF.link opts pgf src
|
||||
|
||||
modifyPGF gr t = lift0 (PGFT.modifyPGF gr t)
|
||||
checkoutPGF gr b = lift0 (PGFT.checkoutPGF gr b)
|
||||
checkoutPGF gr = lift0 (PGFT.checkoutPGF gr)
|
||||
|
||||
@@ -154,8 +154,8 @@ execute1' s0 =
|
||||
checkout = do
|
||||
mb_pgf <- gets multigrammar
|
||||
case mb_pgf of
|
||||
Just pgf -> do mb_pgf <- lift $ checkoutPGF pgf "master"
|
||||
modify $ \gfenv -> gfenv{pgfenv = (fst (pgfenv gfenv),mb_pgf)}
|
||||
Just pgf -> do pgf <- lift $ checkoutPGF pgf
|
||||
modify $ \gfenv -> gfenv{pgfenv = (fst (pgfenv gfenv),Just pgf)}
|
||||
Nothing -> return ()
|
||||
|
||||
interruptible :: ShellM Bool -> ShellM Bool
|
||||
|
||||
Reference in New Issue
Block a user