mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
better error msg for missing record labels
This commit is contained in:
@@ -885,7 +885,7 @@ checkLType env trm typ0 = do
|
|||||||
Just (_,t) -> do
|
Just (_,t) -> do
|
||||||
(t',ty') <- check t ty
|
(t',ty') <- check t ty
|
||||||
return (l,(Just ty',t'))
|
return (l,(Just ty',t'))
|
||||||
_ -> prtFail "cannot find value for label" l
|
_ -> raise $ "cannot find value for label" +++ prt l +++ "in" +++ prt_ (R rms)
|
||||||
|
|
||||||
checkCase arg val (p,t) = do
|
checkCase arg val (p,t) = do
|
||||||
cont <- pattContext env arg p
|
cont <- pattContext env arg p
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ import qualified Data.ByteString.Char8 as BS
|
|||||||
import Debug.Trace ----
|
import Debug.Trace ----
|
||||||
|
|
||||||
-- when developing, swap commenting
|
-- when developing, swap commenting
|
||||||
traceD s t = trace s t
|
--traceD s t = trace s t
|
||||||
--traceD s t = t
|
traceD s t = t
|
||||||
|
|
||||||
|
|
||||||
-- the main function: generate PGF from GF.
|
-- the main function: generate PGF from GF.
|
||||||
|
|||||||
Reference in New Issue
Block a user