mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-11 20:22:51 -06:00
GF.Grammar.*: generalized the type of some functions that can not fail from the Err monad to arbitrary monads
This commit is contained in:
@@ -32,7 +32,7 @@ lockRecType c t@(RecType rs) =
|
||||
else RecType (rs ++ [(lockLabel c, RecType [])])
|
||||
lockRecType c t = plusRecType t $ RecType [(lockLabel c, RecType [])]
|
||||
|
||||
unlockRecord :: Ident -> Term -> Err Term
|
||||
unlockRecord :: Monad m => Ident -> Term -> m Term
|
||||
unlockRecord c ft = do
|
||||
let (xs,t) = termFormCnc ft
|
||||
let lock = R [(lockLabel c, (Just (RecType []),R []))]
|
||||
|
||||
Reference in New Issue
Block a user