Skip to content

Commit

Permalink
Merge branch 'zero-timer'
Browse files Browse the repository at this point in the history
  • Loading branch information
istathar committed May 23, 2021
2 parents 05dd98a + 53a2289 commit 795d88a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: publish
version: 2.2.1
version: 2.2.2
synopsis: Publishing tools for papers, books, and presentations
description: |
Tools for rendering markdown-centric documents into PDFs.
Expand Down
3 changes: 1 addition & 2 deletions src/RenderDocument.hs
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,10 @@ program = do
void (renderDocument (mode, copy) bookfile)
Cycle -> do
-- use inotify to rebuild on changes
forever (renderDocument (mode, copy) bookfile >>= waitForChange)
forever (renderDocument (mode, copy) bookfile >>= waitForChange >> resetTimer)

renderDocument :: (Mode, Copy) -> FilePath -> Program Env [FilePath]
renderDocument (mode, copy) file = do
resetTimer
event "Read .book file"
book <- processBookFile file

Expand Down
3 changes: 2 additions & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
resolver: lts-17.10
resolver: lts-17.12

packages:
- .

extra-deps:
- core-program-0.2.7.1
- hslua-module-path-0.1.0.1
- texmath-0.12.2
- pandoc-2.13

nix:
Expand Down

0 comments on commit 795d88a

Please sign in to comment.