profunctors 4.4 → 4.4.1
raw patch · 12 files changed
+67/−25 lines, 12 files
Files
- .travis.yml +48/−14
- CHANGELOG.markdown +6/−0
- profunctors.cabal +1/−1
- src/Data/Profunctor/Cayley.hs +1/−1
- src/Data/Profunctor/Closed.hs +1/−1
- src/Data/Profunctor/Codensity.hs +1/−1
- src/Data/Profunctor/Collage.hs +1/−1
- src/Data/Profunctor/Composition.hs +1/−1
- src/Data/Profunctor/Ran.hs +1/−1
- src/Data/Profunctor/Rep.hs +1/−1
- src/Data/Profunctor/Tambara.hs +1/−1
- src/Data/Profunctor/Unsafe.hs +4/−2
.travis.yml view
@@ -1,21 +1,58 @@-language: haskell-before_install:- # Uncomment whenever hackage is down.- # - mkdir -p ~/.cabal && cp config ~/.cabal/config && cabal update+# NB: don't set `language: haskell` here - # Try installing some of the build-deps with apt-get for speed.- - ./travis-cabal-apt-install --only-dependencies --force-reinstall $mode+# See also https://github.com/hvr/multi-ghc-travis for more information+env:+ # we have to use CABALVER=1.16 for GHC<7.6 as well, as there's+ # no package for earlier cabal versions in the PPA+ - GHCVER=7.4.2 CABALVER=1.16+ - GHCVER=7.6.3 CABALVER=1.16+ - GHCVER=7.8.4 CABALVER=1.18+ - GHCVER=7.10.1 CABALVER=1.22+ - GHCVER=head CABALVER=1.22 - - sudo apt-get -q -y install hlint || cabal install hlint+matrix:+ allow_failures:+ - env: GHCVER=head CABALVER=1.22 +# Note: the distinction between `before_install` and `install` is not+# important.+before_install:+ - travis_retry sudo add-apt-repository -y ppa:hvr/ghc+ - travis_retry sudo apt-get update+ - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER+ - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH+ - cabal --version+ install:- - cabal configure $mode- - cabal build+ - travis_retry cabal update+ - cabal install --only-dependencies+ - travis_retry sudo apt-get -q -y install hlint || cabal install hlint +# Here starts the actual work to be performed for the package under+# test; any command which exits with a non-zero exit code causes the+# build to fail. script:- - $script- - hlint src --cpp-define HLINT+ # -v2 provides useful information for debugging+ - cabal configure -v2 + # this builds all libraries and executables+ # (including tests/benchmarks)+ - cabal build++ # tests that a source-distribution can be generated+ - cabal sdist+ - hlint src --cpp-define HLINT++ # check that the generated source-distribution can be built & installed+ - export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;+ cd dist/;+ if [ -f "$SRC_TGZ" ]; then+ cabal install --force-reinstalls "$SRC_TGZ";+ else+ echo "expected '$SRC_TGZ' not found";+ exit 1;+ fi+ notifications: irc: channels:@@ -23,6 +60,3 @@ skip_join: true template: - "\x0313profunctors\x03/\x0306%{branch}\x03 \x0314%{commit}\x03 %{build_url} %{message}"--env:- - mode="--enable-tests" script="cabal test"
CHANGELOG.markdown view
@@ -1,3 +1,9 @@+4.4.1+-------+* Using `SafeHaskell`, GHC 7.8+ `Data.Profunctor.Unsafe` now infers as `Trustworthy` and+ many more modules now infer as `Safe`.+* We now build warning-free on GHC 7.10.0.20150307+ 4.4 ----- * Added `Coercible` constraint to (#.) and (.#) when building with GHC 7.8
profunctors.cabal view
@@ -1,6 +1,6 @@ name: profunctors category: Control, Categories-version: 4.4+version: 4.4.1 license: BSD3 cabal-version: >= 1.10 license-file: LICENSE
src/Data/Profunctor/Cayley.hs view
@@ -1,5 +1,5 @@ {-# LANGUAGE CPP #-}-#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 702+#if __GLASGOW_HASKELL__ >= 702 && __GLASGOW_HASKELL__ <= 708 {-# LANGUAGE Trustworthy #-} #endif -----------------------------------------------------------------------------
src/Data/Profunctor/Closed.hs view
@@ -3,7 +3,7 @@ {-# LANGUAGE RankNTypes #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE MultiParamTypeClasses #-}-#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 702+#if __GLASGOW_HASKELL__ >= 702 && __GLASGOW_HASKELL__ <= 708 {-# LANGUAGE Trustworthy #-} #endif
src/Data/Profunctor/Codensity.hs view
@@ -1,7 +1,7 @@ {-# LANGUAGE CPP #-} {-# LANGUAGE Rank2Types #-} {-# LANGUAGE TypeFamilies #-}-#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 702+#if __GLASGOW_HASKELL__ >= 702 && __GLASGOW_HASKELL__ <= 708 {-# LANGUAGE Trustworthy #-} #endif -----------------------------------------------------------------------------
src/Data/Profunctor/Collage.hs view
@@ -4,7 +4,7 @@ {-# LANGUAGE GADTs #-} {-# OPTIONS_GHC -fno-warn-incomplete-patterns #-} {-# LANGUAGE CPP #-}-#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 702+#if __GLASGOW_HASKELL__ >= 702 && __GLASGOW_HASKELL__ <= 708 {-# LANGUAGE Trustworthy #-} #endif -----------------------------------------------------------------------------
src/Data/Profunctor/Composition.hs view
@@ -4,7 +4,7 @@ {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE MultiParamTypeClasses #-}-#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 702+#if __GLASGOW_HASKELL__ >= 702 && __GLASGOW_HASKELL__ <= 708 {-# LANGUAGE Trustworthy #-} #endif -----------------------------------------------------------------------------
src/Data/Profunctor/Ran.hs view
@@ -2,7 +2,7 @@ {-# LANGUAGE Rank2Types #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators #-}-#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 702+#if __GLASGOW_HASKELL__ >= 702 && __GLASGOW_HASKELL__ <= 708 {-# LANGUAGE Trustworthy #-} #endif -----------------------------------------------------------------------------
src/Data/Profunctor/Rep.hs view
@@ -4,7 +4,7 @@ {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE CPP #-}-#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 702+#if __GLASGOW_HASKELL__ >= 702 && __GLASGOW_HASKELL__ <= 708 {-# LANGUAGE Trustworthy #-} #endif -----------------------------------------------------------------------------
src/Data/Profunctor/Tambara.hs view
@@ -3,7 +3,7 @@ {-# LANGUAGE Rank2Types #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE MultiParamTypeClasses #-}-#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 702+#if __GLASGOW_HASKELL__ >= 702 && __GLASGOW_HASKELL__ <= 708 {-# LANGUAGE Trustworthy #-} #endif -----------------------------------------------------------------------------
src/Data/Profunctor/Unsafe.hs view
@@ -1,5 +1,7 @@ {-# LANGUAGE CPP #-}-#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 702+#if __GLASGOW_HASKELL__ >= 708+{-# LANGUAGE Trustworthy #-}+#elif __GLASGOW_HASKELL__ >= 702 {-# LANGUAGE Unsafe #-} #endif {-# LANGUAGE ScopedTypeVariables #-}@@ -171,7 +173,7 @@ ( .# ) = \p -> p `seq` \f -> lmap f p {-# INLINE ( .# ) #-} -#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 708+#if __GLASGOW_HASKELL__ >= 708 {-# MINIMAL dimap | (lmap, rmap) #-} #endif