mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-28 17:33:18 -06:00
fix after the introduction of name patterns
This commit is contained in:
1 parent
00227014b8
commit
a3111f3be7
1 file changed
+1
-1
@@ -271,7 +271,7 @@ transactionCommand (CreateFun opts f ty) pgf mb_txnid = do
|
|||||||
let prob = realToFrac (valFltOpts "prob" (1/0) opts)
|
let prob = realToFrac (valFltOpts "prob" (1/0) opts)
|
||||||
case checkType pgf ty of
|
case checkType pgf ty of
|
||||||
Left msg -> putStrLnE msg
|
Left msg -> putStrLnE msg
|
||||||
Right ty -> do lift $ updatePGF pgf mb_txnid (createFunction f ty 0 [] prob)
|
Right ty -> do lift $ updatePGF pgf mb_txnid (createFunction f ty 0 [] prob >> return ())
|
||||||
return ()
|
return ()
|
||||||
transactionCommand (CreateCat opts c ctxt) pgf mb_txnid = do
|
transactionCommand (CreateCat opts c ctxt) pgf mb_txnid = do
|
||||||
let prob = realToFrac (valFltOpts "prob" (1/0) opts)
|
let prob = realToFrac (valFltOpts "prob" (1/0) opts)
|
||||||
|
|||||||
Reference in new issue
Block a user