mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-22 09:32:53 -06:00
debugging gfcc bug; resulted in some type annotations to work around problems
This commit is contained in:
@@ -179,6 +179,7 @@ computeTermOpt rec gr = comp where
|
|||||||
vs <- allParamValues gr ptyp
|
vs <- allParamValues gr ptyp
|
||||||
case lookup v' (zip vs [0 .. length vs - 1]) of
|
case lookup v' (zip vs [0 .. length vs - 1]) of
|
||||||
Just i -> comp g $ ts !! i
|
Just i -> comp g $ ts !! i
|
||||||
|
----- _ -> prtBad "selection" $ S t' v' -- debug
|
||||||
_ -> return $ S t' v' -- if v' is not canonical
|
_ -> return $ S t' v' -- if v' is not canonical
|
||||||
|
|
||||||
T (TComp _) cs -> do
|
T (TComp _) cs -> do
|
||||||
@@ -196,7 +197,6 @@ computeTermOpt rec gr = comp where
|
|||||||
Alias _ _ d -> comp g (S d v')
|
Alias _ _ d -> comp g (S d v')
|
||||||
|
|
||||||
S (T i cs) e -> prawitz g i (flip S v') cs e
|
S (T i cs) e -> prawitz g i (flip S v') cs e
|
||||||
|
|
||||||
_ -> returnC $ S t' v'
|
_ -> returnC $ S t' v'
|
||||||
|
|
||||||
-- normalize away empty tokens
|
-- normalize away empty tokens
|
||||||
|
|||||||
Reference in New Issue
Block a user