1
0
forked from GitHub/gf-core

param values for TInts in Canon.Look

This commit is contained in:
aarne
2007-05-11 13:57:34 +00:00
parent eb89dc2dfe
commit 8af473a6f5

View File

@@ -118,6 +118,7 @@ allParamValues cnc ptyp = case ptyp of
let (ls,tys) = unzip [(l,t) | Lbg l t <- r]
tss <- mapM allPV tys
return [R (map (uncurry Ass) (zip ls ts)) | ts <- combinations tss]
TInts n -> return [EInt i | i <- [0..n]]
_ -> prtBad "cannot possibly find parameter values for" ptyp
where
allPV = allParamValues cnc