diff options
| author | aarne <unknown> | 2004-06-16 14:49:50 +0000 |
|---|---|---|
| committer | aarne <unknown> | 2004-06-16 14:49:50 +0000 |
| commit | a77519ba1045d23a7bb8ea1c56cc90518e9fedb9 (patch) | |
| tree | 68d72eb77950cf179e8a23ca749a9909b1f2d457 /src/GF/Infra/Modules.hs | |
| parent | 9fae09a77c1f31468129a47cb79156d55f5f2939 (diff) | |
bug fixes ; command so ; reintroduce batch mode
Diffstat (limited to 'src/GF/Infra/Modules.hs')
| -rw-r--r-- | src/GF/Infra/Modules.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/GF/Infra/Modules.hs b/src/GF/Infra/Modules.hs index b43eb7b4d..8272635f7 100644 --- a/src/GF/Infra/Modules.hs +++ b/src/GF/Infra/Modules.hs @@ -244,6 +244,9 @@ lookupModMod gr i = do lookupInfo :: (Show i, Ord i) => Module i f a -> i -> Err a lookupInfo mo i = lookupTree show i (jments mo) +allModMod :: (Show i,Eq i) => MGrammar i f a -> [(i,Module i f a)] +allModMod gr = [(i,m) | (i, ModMod m) <- modules gr] + isModAbs m = case mtype m of MTAbstract -> True ---- MTUnion t -> isModAbs t |
