mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-05 09:12:51 -06:00
rename Decl in GF.Grammar.Grammar to Hypo to match the convention in PGF
This commit is contained in:
@@ -55,17 +55,17 @@ checkCond s b = if b then return () else checkError s
|
||||
checkWarn :: Message -> Check ()
|
||||
checkWarn msg = Check (\ctxt msgs -> Success () ctxt ((text "Warning:" <+> msg) : msgs))
|
||||
|
||||
checkUpdate :: Decl -> Check ()
|
||||
checkUpdate :: Hypo -> Check ()
|
||||
checkUpdate d = Check (\ctxt msgs -> Success () (d:ctxt) msgs)
|
||||
|
||||
checkInContext :: [Decl] -> Check r -> Check r
|
||||
checkInContext :: [Hypo] -> Check r -> Check r
|
||||
checkInContext g ch = do
|
||||
i <- checkUpdates g
|
||||
r <- ch
|
||||
checkResets i
|
||||
return r
|
||||
|
||||
checkUpdates :: [Decl] -> Check Int
|
||||
checkUpdates :: [Hypo] -> Check Int
|
||||
checkUpdates ds = mapM checkUpdate ds >> return (length ds)
|
||||
|
||||
checkReset :: Check ()
|
||||
|
||||
Reference in New Issue
Block a user