Skip to content

Commit

Permalink
Ignore all json files in output directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jonascarpay committed Aug 6, 2022
1 parent d912ea4 commit 5587e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PureNix/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defaultMain :: IO ()
defaultMain = do
let workdir = "."
let moduleRoot = workdir </> "output"
moduleDirs <- filter (/= "cache-db.json") <$> Dir.listDirectory moduleRoot
moduleDirs <- filter (not . FP.isExtensionOf "json") <$> Dir.listDirectory moduleRoot
forM_ moduleDirs $ \rel -> do
let dir = moduleRoot </> rel
let file = dir </> "corefn.json"
Expand Down

0 comments on commit 5587e59

Please sign in to comment.