Skip to content

Commit

Permalink
fix compilation in -resource mode
Browse files Browse the repository at this point in the history
  • Loading branch information
krangelov committed Oct 22, 2024
1 parent 3b36b38 commit ac427d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/api/GF/Compile/CheckGrammar.hs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ checkRestrictedInheritance cwd sgr (name,mo) = checkInModule cwd mo NoLoc empty
-- the restr. modules themself, with restr. infos
mapM_ checkRem mrs
where
mos = modules sgr
mos = [mo | mo@(_,ModInfo{}) <- modules sgr]
checkRem ((i,m),mi) = do
let (incl,excl) = partition (isInherited mi) (Map.keys (jments m))
let incld c = Set.member c (Set.fromList incl)
Expand Down

0 comments on commit ac427d6

Please sign in to comment.