packages feed

hcltest 0.3.1 → 0.3.2

raw patch · 3 files changed

+48/−26 lines, 3 filesdep ~eitherdep ~freedep ~lensPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: either, free, lens, optparse-applicative

API changes (from Hackage documentation)

Files

.travis.yml view
@@ -1,5 +1,5 @@ env:- - GHCVER=7.4.2 CABALVER=1.18+ - GHCVER=7.4.2 CABALVER=1.16  - GHCVER=7.6.3 CABALVER=1.18  - GHCVER=7.8.2 CABALVER=1.20 @@ -12,7 +12,6 @@  - export PATH=/opt/ghc/$GHCVER/bin:~/.cabal/bin:$PATH  install:- - cabal-$CABALVER sandbox init  - travis/github.sh ekmett/exceptions  - travis/github.sh xich/temporary  - cabal-$CABALVER install --only-dependencies --enable-tests --enable-benchmarks -j
hcltest.cabal view
@@ -1,5 +1,5 @@ name: hcltest-version: 0.3.1+version: 0.3.2 cabal-version: >=1.10 build-type: Custom license: BSD3@@ -10,32 +10,52 @@ homepage: http://github.com/bennofs/hcltest/ bug-reports: http://github.com/bennofs/hcltest/issues synopsis: A testing library for command line applications.-description: Allows to write tests for command line applications using haskell.+description:+    Allows to write tests for command line applications using haskell. category: Testing author: Benno Fünfstück-data-dir: ""-extra-source-files: .ghci .gitignore .travis.yml .vim.custom-                    README.md+extra-source-files:+    .ghci+    .gitignore+    .travis.yml+    .vim.custom+    README.md   source-repository head     type: git     location: git://github.com/bennofs/hcltest.git   library-    build-depends: base >=4.5.1.0 && <4.8,-                   bytestring >=0.9.2.1 && <0.11, text >=0.11.2.3 && <1.2,-                   free >=4.5 && <4.8, process >=1.1.0.1 && <1.3,-                   filepath >=1.3.0.0 && <1.4, transformers >=0.3.0.0 && <0.4,-                   either >=4.1.1 && <4.2, directory >=1.1.0.2 && <1.3,-                   dlist >=0.6.0.1 && <0.8, temporary >=1.2.0.1 && <1.3,-                   mtl >=2.1.2 && <2.2, lens >=4.0.7 && <4.2, tasty >=0.8.0.2 && <0.9,-                   tagged >=0.7.1 && <0.8, mmorph >=1.0.2 && <1.1,-                   random-shuffle >=0.0.4 && <0.1, split >=0.2.1.1 && <0.3,-                   stm ==2.4.*, optparse-applicative >=0.7.0.2 && <0.9,-                   monad-control >=0.3.2.3 && <0.4, transformers-base >=0.4.1 && <0.5-    exposed-modules: Test.HClTest Test.HClTest.Program-                     Test.HClTest.Monad Test.HClTest.Setup Test.HClTest.Trace-                     Test.Tasty.HClTest+    build-depends:+        base >=4.5.1.0 && <4.8,+        bytestring >=0.9.2.1 && <0.11,+        text >=0.11.2.3 && <1.2,+        free >=4.5 && <4.10,+        process >=1.1.0.1 && <1.3,+        filepath >=1.3.0.0 && <1.4,+        transformers >=0.3.0.0 && <0.4,+        either >=4.1.1 && <4.4,+        directory >=1.1.0.2 && <1.3,+        dlist >=0.6.0.1 && <0.8,+        temporary >=1.2.0.1 && <1.3,+        mtl >=2.1.2 && <2.2,+        lens >=4.0.7 && <4.3,+        tasty >=0.8.0.2 && <0.9,+        tagged >=0.7.1 && <0.8,+        mmorph >=1.0.2 && <1.1,+        random-shuffle >=0.0.4 && <0.1,+        split >=0.2.1.1 && <0.3,+        stm ==2.4.*,+        optparse-applicative >=0.7.0.2 && <0.10,+        monad-control >=0.3.2.3 && <0.4,+        transformers-base >=0.4.1 && <0.5+    exposed-modules:+        Test.HClTest+        Test.HClTest.Program+        Test.HClTest.Monad+        Test.HClTest.Setup+        Test.HClTest.Trace+        Test.Tasty.HClTest     exposed: True     buildable: True     default-language: Haskell2010@@ -43,8 +63,11 @@     ghc-options: -Wall   test-suite doctests-    build-depends: base >=4.5.1.0 && <4.8, directory >=1.1.0.2 && <1.3,-                   doctest >=0.9.10.2, filepath >=1.3.0.0 && <1.4+    build-depends:+        base >=4.5.1.0 && <4.8,+        directory >=1.1.0.2 && <1.3,+        doctest >=0.9.10.2,+        filepath >=1.3.0.0 && <1.4           if impl(ghc <7.6.1)         buildable: True
src/Test/Tasty/HClTest.hs view
@@ -3,7 +3,7 @@ {-# LANGUAGE OverloadedStrings #-}  -- | This module provides support for running hcltest cases using tasty.-module Test.Tasty.HClTest +module Test.Tasty.HClTest   ( hcltest   , module X   ) where@@ -17,7 +17,7 @@  newtype HClTasty = HClTasty (HClTest Trace ()) deriving Typeable --- | Factor to apply to the test timeout. +-- | Factor to apply to the test timeout. newtype HClTestTimeoutFactor = HClTestTimeoutFactor Double deriving (Typeable, Ord, Num, Eq, Real) instance IsOption HClTestTimeoutFactor where   defaultValue = 1@@ -33,7 +33,7 @@   optionName = return "hcltest-success-log"   optionHelp = return "Also print the log when the test succeeded"   optionCLParser = HClTestSuccessLog <$> switch (long "hcltest-success-log" <> help "Also print the log when the test succeeded")-  + instance IsTest HClTasty where   testOptions = return     [ Option (Proxy :: Proxy HClTestTimeoutFactor)