Skip to content

Commit

Permalink
Merge pull request ulidtko#56 from phadej/prepare-1.0.8
Browse files Browse the repository at this point in the history
Bump version to 1.0.8
  • Loading branch information
phadej authored Oct 2, 2019
2 parents 9ef3042 + 350ea20 commit b494b38
Show file tree
Hide file tree
Showing 7 changed files with 153 additions and 86 deletions.
12 changes: 10 additions & 2 deletions .stylish-haskell.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
steps:
- simple_align:
cases: false
top_level_patterns: false
records: false
- imports:
align: group
list_align: new_line
long_list_align: new_line
empty_list_align: right_after
list_padding: module_name
separate_lists: true

- language_pragmas:
style: vertical
align: true
remove_redundant: true
- trailing_whitespace: {}
columns: 80
newline: lf
language_extensions:
- MultiParamTypeClasses
- FlexibleContexts
- ExplicitForAll
- TemplateHaskell
- QuasiQuotes
62 changes: 50 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# For more information, see https://github.com/haskell-CI/haskell-ci
#
# version: 0.3.20190815
# version: 0.5.20190916
#
language: c
dist: xenial
Expand Down Expand Up @@ -32,28 +32,63 @@ matrix:
- compiler: ghc-8.8.1
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.8.1","cabal-install-3.0"]}}
- compiler: ghc-8.6.5
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.6.5","cabal-install-2.4"]}}
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.6.5","cabal-install-3.0"]}}
- compiler: ghc-8.6.4
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.6.4","cabal-install-3.0"]}}
- compiler: ghc-8.6.3
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.6.3","cabal-install-3.0"]}}
- compiler: ghc-8.6.2
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.6.2","cabal-install-3.0"]}}
- compiler: ghc-8.6.1
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.6.1","cabal-install-3.0"]}}
- compiler: ghc-8.4.4
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.4.4","cabal-install-2.4"]}}
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.4.4","cabal-install-3.0"]}}
- compiler: ghc-8.4.3
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.4.3","cabal-install-3.0"]}}
- compiler: ghc-8.4.2
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.4.2","cabal-install-3.0"]}}
- compiler: ghc-8.4.1
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.4.1","cabal-install-3.0"]}}
- compiler: ghc-8.2.2
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.2.2","cabal-install-2.4"]}}
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.2.2","cabal-install-3.0"]}}
- compiler: ghc-8.2.1
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.2.1","cabal-install-3.0"]}}
- compiler: ghc-8.0.2
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.0.2","cabal-install-2.4"]}}
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.0.2","cabal-install-3.0"]}}
- compiler: ghc-8.0.1
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.0.1","cabal-install-3.0"]}}
- compiler: ghc-7.10.3
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.10.3","cabal-install-2.4"]}}
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.10.3","cabal-install-3.0"]}}
- compiler: ghc-7.10.2
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.10.2","cabal-install-3.0"]}}
- compiler: ghc-7.10.1
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.10.1","cabal-install-3.0"]}}
- compiler: ghc-7.8.4
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.8.4","cabal-install-2.4"]}}
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.8.4","cabal-install-3.0"]}}
- compiler: ghc-7.8.3
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.8.3","cabal-install-3.0"]}}
- compiler: ghc-7.8.2
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.8.2","cabal-install-3.0"]}}
- compiler: ghc-7.8.1
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.8.1","cabal-install-3.0"]}}
- compiler: ghc-7.6.3
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.6.3","cabal-install-2.4"]}}
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.6.3","cabal-install-3.0"]}}
- compiler: ghc-7.6.2
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.6.2","cabal-install-3.0"]}}
- compiler: ghc-7.6.1
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.6.1","cabal-install-3.0"]}}
- compiler: ghc-7.4.2
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.4.2","cabal-install-2.4"]}}
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.4.2","cabal-install-3.0"]}}
- compiler: ghc-7.4.1
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.4.1","cabal-install-3.0"]}}
- compiler: ghc-7.2.2
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.2.2","cabal-install-2.4"]}}
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.2.2","cabal-install-3.0"]}}
- compiler: ghc-7.0.4
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.0.4","cabal-install-2.4"]}}
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.0.4","cabal-install-3.0"]}}
before_install:
- HC=$(echo "/opt/$CC/bin/ghc" | sed 's/-/\//')
- WITHCOMPILER="-w $HC"
- HADDOCK=$(echo "/opt/$CC/bin/haddock" | sed 's/-/\//')
- HCPKG="$HC-pkg"
- unset CC
- CABAL=/opt/ghc/bin/cabal
Expand Down Expand Up @@ -105,6 +140,9 @@ install:
echo " prefix: $CABALHOME" >> $CABALHOME/config
echo "repository hackage.haskell.org" >> $CABALHOME/config
echo " url: http://hackage.haskell.org/" >> $CABALHOME/config
- |
echo "program-default-options" >> $CABALHOME/config
echo " ghc-options: $GHCJOBS +RTS -M6G -RTS" >> $CABALHOME/config
- cat $CABALHOME/config
- rm -fv cabal.project cabal.project.local cabal.project.freeze
- travis_retry ${CABAL} v2-update -v
Expand Down Expand Up @@ -163,7 +201,7 @@ script:
- if [ $HCNUMVER -ge 71000 ] ; then (cd ${PKGDIR_simple_example} && ${CABAL} -vnormal check) ; fi
- if [ $HCNUMVER -ge 71000 ] ; then (cd ${PKGDIR_multiple_components_example} && ${CABAL} -vnormal check) ; fi
# haddock...
- ${CABAL} v2-haddock $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output
- ${CABAL} v2-haddock $WITHCOMPILER --with-haddock $HADDOCK ${TEST} ${BENCH} all | color_cabal_output
# Building without installed constraints for packages in global-db...
- rm -f cabal.project.local
- ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all | color_cabal_output
Expand Down
7 changes: 6 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# 1.0.7 -- 2019-??-??
# 1.0.8 -- 2019-10-02

* Pass `-package-env=-` when compiler supports it
* Amend examples to `unsetEnv "GHC_ENVIRONMENT"`

# 1.0.7 -- 2019-08-26

* Make `Distribution.Extra.Doctest` `-Wall`-clean
* Support GHC-8.8, base-4.13, and Cabal-3.0
Expand Down
65 changes: 29 additions & 36 deletions cabal-doctest.cabal
Original file line number Diff line number Diff line change
@@ -1,53 +1,46 @@
name: cabal-doctest
version: 1.0.7
synopsis: A Setup.hs helper for doctests running
name: cabal-doctest
version: 1.0.8
synopsis: A Setup.hs helper for doctests running
description:
Currently (beginning of 2017), there isn't @cabal doctest@
command. Yet, to properly work doctest needs plenty of configuration.
This library provides the common bits for writing custom Setup.hs

See <https://github.com/haskell/cabal/issues/2327 Cabal/2327> for the progress
of @cabal doctest@, i.e. whether this library is obsolete.

homepage: https://github.com/phadej/cabal-doctest
license: BSD3
license-file: LICENSE
author: Oleg Grenrus <[email protected]>
maintainer: Oleg Grenrus <[email protected]>
copyright: (c) 2017 Oleg Grenrus
category: Distribution
build-type: Simple
cabal-version: >=1.10
extra-source-files: ChangeLog.md README.md
tested-with:
GHC==7.0.4,
GHC==7.2.2,
GHC==7.4.2,
GHC==7.6.3,
GHC==7.8.4,
GHC==7.10.3,
GHC==8.0.2,
GHC==8.2.2,
GHC==8.4.4,
GHC==8.6.5,
GHC==8.8.1
homepage: https://github.com/phadej/cabal-doctest
license: BSD3
license-file: LICENSE
author: Oleg Grenrus <[email protected]>
maintainer: Oleg Grenrus <[email protected]>
copyright: (c) 2017 Oleg Grenrus
category: Distribution
build-type: Simple
cabal-version: >=1.10
extra-source-files:
ChangeLog.md
README.md

tested-with: GHC ==8.8.1 || >=7.4 && <8.8 || ==7.2.2 || ==7.0.4

source-repository head
type: git
location: https://github.com/phadej/cabal-doctest

library
exposed-modules: Distribution.Extra.Doctest
exposed-modules: Distribution.Extra.Doctest
other-modules:
other-extensions:
build-depends:
base >=4.3 && <4.14,
Cabal >= 1.10 && <3.1,
filepath,
directory
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall
if !impl(ghc >= 7.2)
base >=4.3 && <4.14
, Cabal >=1.10 && <3.1
, directory
, filepath

hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall

if !impl(ghc >=7.2)
-- Work around a pattern-match coverage checking bug in GHC 7.0
ghc-options: -fno-warn-overlapping-patterns
ghc-options: -fno-warn-overlapping-patterns
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ maintainer: Oleg Grenrus <[email protected]>
copyright: (c) 2017 Oleg Grenrus
category: Example
build-type: Custom
tested-with: GHC ==8.8.1 || ==8.6.5 || ==8.4.4 || ==8.2.2 || ==8.0.2 || ==7.10.3
tested-with: GHC >=7.10 && <8.8 || ==8.8.1

custom-setup
setup-depends:
Expand Down
2 changes: 1 addition & 1 deletion simple-example/simple-example.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ copyright: (c) 2017 Oleg Grenrus
category: Example
build-type: Custom
cabal-version: 1.12
tested-with: GHC ==8.8.1 || ==8.6.5 || ==8.4.4 || ==8.2.2 || ==8.0.2 || ==7.10.3
tested-with: GHC >=7.10 && <8.8 || ==8.8.1

custom-setup
setup-depends:
Expand Down
Loading

0 comments on commit b494b38

Please sign in to comment.