-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from vekatze/fetch-on-check
fix: intall dependencies before running `check`
- Loading branch information
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
module Act.Check (check) where | ||
|
||
import Context.App | ||
import Context.Module qualified as Module | ||
import Context.Remark qualified as Remark | ||
import Entity.Config.Check | ||
import Entity.Remark qualified as Remark | ||
import Scene.Check qualified as Check | ||
import Scene.Fetch qualified as Fetch | ||
import Scene.Initialize qualified as Initialize | ||
|
||
check :: Config -> App () | ||
check cfg = do | ||
Initialize.initializeCompiler (remarkCfg cfg) | ||
setup cfg | ||
logs <- Check.check | ||
if shouldInsertPadding cfg | ||
then Remark.printErrorList logs | ||
else Remark.printErrorList $ map Remark.deactivatePadding logs | ||
|
||
setup :: Config -> App () | ||
setup cfg = do | ||
Initialize.initializeCompiler (remarkCfg cfg) | ||
Module.getMainModule >>= Fetch.fetch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters