packages feed

linear 1.21.1 → 1.21.2

raw patch · 3 files changed

+10/−18 lines, 3 filesdep ~base-orphans

Dependency ranges changed: base-orphans

Files

CHANGELOG.markdown view
@@ -1,3 +1,9 @@+1.21.2 [2020.09.30]+-------------------+* Use `base-orphans-0.8.3` or later. This means that the `Linear.Instances`+  module no longer defines any orphan instances of its own, and the module is+  now a simple shim on top of `Data.Orphans` from `base-orphans`.+ 1.21.1 [2020.06.25] ------------------- * Allow building with `random-1.2.*`.
linear.cabal view
@@ -1,6 +1,6 @@ name:          linear category:      Math, Algebra-version:       1.21.1+version:       1.21.2 license:       BSD3 cabal-version: >= 1.10 license-file:  LICENSE@@ -60,7 +60,7 @@   build-depends:     adjunctions          >= 4     && < 5,     base                 >= 4.5   && < 5,-    base-orphans         >= 0.5   && < 1,+    base-orphans         >= 0.8.3 && < 1,     binary               >= 0.5   && < 0.9,     bytes                >= 0.15  && < 1,     cereal               >= 0.4.1.1 && < 0.6,
src/Linear/Instances.hs view
@@ -1,8 +1,4 @@-{-# OPTIONS_GHC -fno-warn-orphans #-}-{-# LANGUAGE CPP #-}-#if __GLASGOW_HASKELL__ >= 702 && __GLASGOW_HASKELL__ < 710-{-# LANGUAGE Trustworthy #-}-#endif+{-# LANGUAGE Safe #-} ----------------------------------------------------------------------------- -- | -- Copyright   :  (C) 2012-2015 Edward Kmett@@ -11,18 +7,8 @@ -- Stability   :  provisional -- Portability :  portable ----- Orphans+-- Re-exports orphan instances for @Complex@ from the @base-orphans@ package. ----------------------------------------------------------------------------- module Linear.Instances () where -import Control.Applicative-import Control.Monad.Fix-import Control.Monad.Zip-import Data.Complex import Data.Orphans ()--instance MonadZip Complex where-  mzipWith = liftA2--instance MonadFix Complex where-  mfix f = (let a :+ _ = f a in a) :+ (let _ :+ a = f a in a)