From 68903bb25155978b6da22b1f6bd7069621c7dc30 Mon Sep 17 00:00:00 2001 From: aarne Date: Sat, 24 May 2008 16:13:27 +0000 Subject: started source grammar API ; used it for a first implem. of cc command --- src-3.0/GF/Infra/Modules.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src-3.0/GF/Infra/Modules.hs') diff --git a/src-3.0/GF/Infra/Modules.hs b/src-3.0/GF/Infra/Modules.hs index fe44a5fe4..971d52054 100644 --- a/src-3.0/GF/Infra/Modules.hs +++ b/src-3.0/GF/Infra/Modules.hs @@ -403,7 +403,7 @@ allResources gr = [i | (i,ModMod m) <- modules gr, isModRes m] greatestResource :: MGrammar i a -> Maybe i greatestResource gr = case allResources gr of [] -> Nothing - a -> return $ head a + a -> return $ head a ---- why not last as in Abstract? works though AR 24/5/2008 -- | all concretes for a given abstract allConcretes :: Eq i => MGrammar i a -> i -> [i] -- cgit v1.2.3