tools: misc Shake, pandoc filter fixes

This commit is contained in:
Simon Michael 2018-03-31 02:43:28 +01:00
parent b5546fd7b6
commit 8ce5c84f35
2 changed files with 11 additions and 6 deletions

View File

@ -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

View File

@ -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