Skip to content

Commit

Permalink
chore: don't build wip files
Browse files Browse the repository at this point in the history
  • Loading branch information
ncfavier committed Dec 14, 2023
1 parent 782088c commit 2c82986
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion support/shake/app/Shake/Modules.hs
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@ moduleRules :: Rules ()
moduleRules = do
_ <- addOracle \ModulesQ -> do
let
notWip x = not ("wip//" ?== x)

toOut x | takeExtensions x == ".lagda.md"
= (moduleName (dropExtensions x), WithText)
toOut x = (moduleName (dropExtensions x), CodeOnly)

ModulesA . Map.fromList . map toOut <$> getDirectoryFiles "src" ["**/*.agda", "**/*.lagda.md"]
ModulesA . Map.fromList . map toOut . filter notWip <$> getDirectoryFiles "src" ["**/*.agda", "**/*.lagda.md"]
pure ()

-- | Get all 1Lab modules.
Expand Down

0 comments on commit 2c82986

Please sign in to comment.