1
0
forked from GitHub/gf-core

lincat can now be just Str

This commit is contained in:
aarne
2008-03-09 12:17:42 +00:00
parent aa94e34098
commit a34eed5189
3 changed files with 9 additions and 5 deletions

View File

@@ -247,7 +247,8 @@ mkLinDefault :: SourceGrammar -> Type -> Err Term
mkLinDefault gr typ = do
case unComputed typ of
RecType lts -> mapPairsM mkDefField lts >>= (return . Abs strVar . R . mkAssign)
_ -> prtBad "linearization type must be a record type, not" typ
_ -> liftM (Abs strVar) $ mkDefField typ
---- _ -> prtBad "linearization type must be a record type, not" typ
where
mkDefField typ = case unComputed typ of
Table p t -> do