Skip to content

Commit

Permalink
Fix some release checks
Browse files Browse the repository at this point in the history
Windows doesn’t allow »aux« directories, for example.
  • Loading branch information
quchen committed May 20, 2017
1 parent bc78400 commit 2ea5c40
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 14 deletions.
10 changes: 5 additions & 5 deletions prettyprinter-ansi-terminal/prettyprinter-ansi-terminal.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: See README.md
license: BSD2
license-file: LICENSE.md
extra-source-files: README.md
, aux/version-compatibility-macros.h
, misc/version-compatibility-macros.h
author: David Luposchainsky
maintainer: David Luposchainsky <dluposchainsky at google>
bug-reports: http://github.com/quchen/prettyprinter/issues
Expand All @@ -20,10 +20,10 @@ source-repository head
location: git://github.com/quchen/prettyprinter.git

library
exposed-modules: Data.Text.Prettyprint.Doc.Render.Terminal
ghc-options: -Wall
hs-source-dirs: src
include-dirs: aux
exposed-modules: Data.Text.Prettyprint.Doc.Render.Terminal
ghc-options: -Wall
hs-source-dirs: src
include-dirs: misc
default-language: Haskell2010
other-extensions:
CPP
Expand Down
2 changes: 1 addition & 1 deletion prettyprinter-ansi-terminal/test/Doctest/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ module Main (main) where
import Test.DocTest

main :: IO ()
main = doctest [ "src" , "-Iaux"]
main = doctest [ "src" , "-Imisc"]
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description: See README.md
license: BSD2
license-file: LICENSE.md
extra-source-files: README.md
, misc/version-compatibility-macros.h
author: Daan Leijen, David Raymond Christiansen, David Luposchainsky
maintainer: David Luposchainsky <dluposchainsky at google>
bug-reports: http://github.com/quchen/prettyprinter/issues
Expand All @@ -22,7 +23,7 @@ library
exposed-modules: Text.PrettyPrint.Annotated.Leijen
ghc-options: -Wall
hs-source-dirs: src
include-dirs: aux
include-dirs: misc
default-language: Haskell2010
other-extensions: CPP

Expand Down
4 changes: 2 additions & 2 deletions prettyprinter/prettyprinter.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: See README.md
license: BSD2
license-file: LICENSE.md
extra-source-files: README.md
, aux/version-compatibility-macros.h
, misc/version-compatibility-macros.h
author: Phil Wadler, Daan Leijen, Max Bolingbroke, Edward Kmett, David Luposchainsky
maintainer: David Luposchainsky <dluposchainsky at google>
bug-reports: http://github.com/quchen/prettyprinter/issues
Expand Down Expand Up @@ -40,7 +40,7 @@ library
-- , Data.Text.Prettyprint.Doc.Unicode
ghc-options: -Wall
hs-source-dirs: src
include-dirs: aux
include-dirs: misc
default-language: Haskell2010
other-extensions:
BangPatterns
Expand Down
2 changes: 1 addition & 1 deletion prettyprinter/test/Doctest/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ module Main (main) where
import Test.DocTest

main :: IO ()
main = doctest [ "src" , "-Iaux"]
main = doctest [ "src" , "-Imisc"]
4 changes: 2 additions & 2 deletions scripts/benchmark
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ PROJECT_ROOT="$(stack path --project-root)"
cd "$PROJECT_ROOT"
pwd

OUTDIR="${PROJECT_ROOT}/generated"
OUTDIR="${PROJECT_ROOT}/generated/benchmarks"
mkdir -p "$OUTDIR"
stack bench prettyprinter:bench:fusion \
--benchmark-arguments "--output \"$OUTDIR/wl-pprint-benchmark.html\""
--benchmark-arguments "--output \"$OUTDIR/fusion.html\""
stack bench prettyprinter:bench:faster-unsafe-text \
--benchmark-arguments "--output \"$OUTDIR/faster-unsafe-text.html\""
2 changes: 1 addition & 1 deletion scripts/find-language-extensions
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function separator() {
echo
}

for dir in wl-pprint*; do
for dir in prettyprinter*; do
separator
echo "Language extensions used in $dir:"
for extension in $(find-language-extensions "$dir"); do
Expand Down
2 changes: 1 addition & 1 deletion scripts/haddock
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

stack haddock --open wl-pprint
stack haddock --open prettyprinter

0 comments on commit 2ea5c40

Please sign in to comment.