nanospec 0.2.1 → 0.2.2
raw patch · 3 files changed
+37/−23 lines, 3 filesdep ~base
Dependency ranges changed: base
Files
- LICENSE +1/−1
- nanospec.cabal +31/−22
- src/Test/Hspec.hs +5/−0
LICENSE view
@@ -1,4 +1,4 @@-Copyright (c) 2012-2015 Simon Hengel <sol@typeful.net>+Copyright (c) 2012-2018 Simon Hengel <sol@typeful.net> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
nanospec.cabal view
@@ -1,45 +1,54 @@+-- This file has been generated from package.yaml by hpack version 0.21.2.+--+-- see: https://github.com/sol/hpack+--+-- hash: 37c5f592f7cb57ed5e2959180e54db9807aa3b62fa5002be553465d680c4f35c+ name: nanospec-version: 0.2.1+version: 0.2.2 license: MIT license-file: LICENSE-copyright: (c) 2012-2015 Simon Hengel+copyright: (c) 2012-2018 Simon Hengel author: Simon Hengel <sol@typeful.net> maintainer: Simon Hengel <sol@typeful.net> category: Testing+homepage: https://github.com/hspec/nanospec#readme+bug-reports: https://github.com/hspec/nanospec/issues synopsis: A lightweight implementation of a subset of Hspec's API-description: A lightweight implementation of a subset of Hspec's API with- minimal dependencies.+description: A lightweight implementation of a subset of Hspec's API with minimal dependencies. build-type: Simple-cabal-version: >= 1.8+cabal-version: >= 1.10 source-repository head type: git location: https://github.com/hspec/nanospec library- exposed:- False- ghc-options:- -Wall+ exposed: False+ ghc-options: -Wall hs-source-dirs: src exposed-modules: Test.Hspec+ other-modules:+ Paths_nanospec build-depends:- base >= 4 && <= 5+ base ==4.*+ default-language: Haskell2010 test-suite spec- type:- exitcode-stdio-1.0- cpp-options:- -DTEST- ghc-options:- -Wall+ type: exitcode-stdio-1.0+ cpp-options: -DTEST+ ghc-options: -Wall hs-source-dirs:- src, test- main-is:- Test/HspecSpec.hs+ src+ test+ main-is: Test/HspecSpec.hs+ other-modules:+ Test.Hspec+ Paths_nanospec build-depends:- base- , hspec >= 1.3- , silently >= 1.2.4+ base ==4.*+ , hspec >=1.3+ , silently >=1.2.4+ default-language: Haskell2010
src/Test/Hspec.hs view
@@ -77,7 +77,12 @@ instance Monoid Summary where mempty = Summary 0 0+#if !MIN_VERSION_base(4,11,0) (Summary x1 x2) `mappend` (Summary y1 y2) = Summary (x1 + y1) (x2 + y2)+#else+instance Semigroup Summary where+ (Summary x1 x2) <> (Summary y1 y2) = Summary (x1 + y1) (x2 + y2)+#endif runSpec :: Spec -> IO Summary runSpec = runForrest []