diff --git a/Shake.hs b/Shake.hs index 564dded2d..c61b3ffef 100755 --- a/Shake.hs +++ b/Shake.hs @@ -1,14 +1,16 @@ #!/usr/bin/env stack -{- stack exec --verbosity=info +{- stack exec + --verbosity=info + --stack-yaml=stack-ghc8.2.yaml --package base-prelude --package directory --package extra - --package pandoc --package safe --package shake --package time -- ghc -} +-- --package pandoc {- One of two project scripts files (Makefile, Shake.hs). This one provides a stronger programming language and more @@ -42,12 +44,12 @@ not having to write :: Action ExitCode after a non-final cmd import Prelude () import "base-prelude" BasePrelude +import "directory" System.Directory as S (getDirectoryContents) import "extra" Data.List.Extra import "safe" Safe import "shake" Development.Shake import "shake" Development.Shake.FilePath import "time" Data.Time -import "directory" System.Directory as S (getDirectoryContents) usage = unlines ["Usage:" @@ -183,7 +185,7 @@ main = do pandocFilters |%> \out -> do need [out <.> "hs"] - cmd ("stack ghc") out + cmd ("stack --stack-yaml=stack-ghc8.2.yaml ghc") out -- man pages diff --git a/tools/pandoc-drop-toc.hs b/tools/pandoc-drop-toc.hs index 0528194ac..b3336e993 100755 --- a/tools/pandoc-drop-toc.hs +++ b/tools/pandoc-drop-toc.hs @@ -1,6 +1,9 @@ #!/usr/bin/env stack -{- stack runghc --verbosity info - --package pandoc +{- stack runghc + --verbosity info + --stack-yaml=stack-ghc8.2.yaml + --package pandoc-types + --package safe --package split -} -- Remove a table of contents marker