diff -Nru haskell-storable-complex-0.2.2/debian/changelog haskell-storable-complex-0.2.3.0/debian/changelog --- haskell-storable-complex-0.2.2/debian/changelog 2018-09-30 18:21:41.000000000 +0000 +++ haskell-storable-complex-0.2.3.0/debian/changelog 2019-08-03 12:57:15.000000000 +0000 @@ -1,3 +1,15 @@ +haskell-storable-complex (0.2.3.0-1build1) eoan; urgency=medium + + * Rebuild against new GHC abi. + + -- Gianfranco Costamagna Sat, 03 Aug 2019 14:57:15 +0200 + +haskell-storable-complex (0.2.3.0-1) unstable; urgency=medium + + * New upstream version. + + -- Clint Adams Sun, 28 Jul 2019 15:00:03 -0400 + haskell-storable-complex (0.2.2-8) unstable; urgency=medium [ Clint Adams ] diff -Nru haskell-storable-complex-0.2.2/debian/control haskell-storable-complex-0.2.3.0/debian/control --- haskell-storable-complex-0.2.2/debian/control 2018-09-29 11:08:25.000000000 +0000 +++ haskell-storable-complex-0.2.3.0/debian/control 2019-07-28 19:00:03.000000000 +0000 @@ -9,9 +9,12 @@ debhelper (>= 10), ghc (>= 8), ghc-prof, - haskell-devscripts (>= 0.13), -Build-Depends-Indep: ghc-doc -Standards-Version: 4.1.4 + haskell-devscripts (>= 0.15), + libghc-base-orphans-dev (>= 0.3.2), + libghc-base-orphans-prof, +Build-Depends-Indep: ghc-doc, + libghc-base-orphans-doc, +Standards-Version: 4.4.0 Homepage: https://github.com/cartazio/storable-complex Vcs-Browser: https://salsa.debian.org/haskell-team/DHG_packages/tree/master/p/haskell-storable-complex Vcs-Git: https://salsa.debian.org/haskell-team/DHG_packages.git [p/haskell-storable-complex] diff -Nru haskell-storable-complex-0.2.2/in-base/Foreign/Storable/Complex.hs haskell-storable-complex-0.2.3.0/in-base/Foreign/Storable/Complex.hs --- haskell-storable-complex-0.2.2/in-base/Foreign/Storable/Complex.hs 2015-01-02 03:35:00.000000000 +0000 +++ haskell-storable-complex-0.2.3.0/in-base/Foreign/Storable/Complex.hs 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -module Foreign.Storable.Complex () where diff -Nru haskell-storable-complex-0.2.2/out-of-base/Foreign/Storable/Complex.hs haskell-storable-complex-0.2.3.0/out-of-base/Foreign/Storable/Complex.hs --- haskell-storable-complex-0.2.2/out-of-base/Foreign/Storable/Complex.hs 2015-01-02 03:35:00.000000000 +0000 +++ haskell-storable-complex-0.2.3.0/out-of-base/Foreign/Storable/Complex.hs 1970-01-01 00:00:00.000000000 +0000 @@ -1,37 +0,0 @@ ------------------------------------------------------------------------------ --- | --- Module : Data.Array.CArray.Base --- Copyright : (c) 2008 Jed Brown --- License : BSD-style --- --- Maintainer : jed@59A2.org --- Stability : provisional --- Portability : portable --- --- This module provides a Storable instance for Complex which is binary --- compatible with C99, C++ and Fortran complex data types. It's only purpose --- is to provide a standard location for this instance so that other packages --- needing this instance can play nicely together. --- ------------------------------------------------------------------------------ - -{-# LANGUAGE ScopedTypeVariables #-} - -module Foreign.Storable.Complex () where - -import Data.Complex -import Foreign.Storable -import Foreign.Ptr - --- This Storable instance for Complex is binary compatible with C99, C++ and --- Fortran complex data types. -instance Storable a => Storable (Complex a) where - sizeOf z = 2 * sizeOf (undefined :: a) - alignment z = alignment (undefined :: a) - peek p = do let q = castPtr p - r <- peek q - i <- peekElemOff q 1 - return (r :+ i) - poke p (r :+ i) = do let q = (castPtr p) - poke q r - pokeElemOff q 1 i diff -Nru haskell-storable-complex-0.2.2/README.md haskell-storable-complex-0.2.3.0/README.md --- haskell-storable-complex-0.2.2/README.md 1970-01-01 00:00:00.000000000 +0000 +++ haskell-storable-complex-0.2.3.0/README.md 1970-01-01 00:00:00.000000000 +0000 @@ -0,0 +1,13 @@ +# what is storable-complex? + +historically, `Complex a` didn't have a storable instance in base, +and thus storable-complex was born! + +# when might i use this package? + +you're using an older ghc/version of base AND calling out to some C or fortran +codes around complex numbers. You might find yourself needing this then! + +# when might i regret using this? +if you're writing your own orphan instances instead of using base-orphans, +you might have a bad day, use base-orphans (and storable-complex) instead! diff -Nru haskell-storable-complex-0.2.2/src/Foreign/Storable/Complex.hs haskell-storable-complex-0.2.3.0/src/Foreign/Storable/Complex.hs --- haskell-storable-complex-0.2.2/src/Foreign/Storable/Complex.hs 1970-01-01 00:00:00.000000000 +0000 +++ haskell-storable-complex-0.2.3.0/src/Foreign/Storable/Complex.hs 1970-01-01 00:00:00.000000000 +0000 @@ -0,0 +1,3 @@ +module Foreign.Storable.Complex () where + +import Data.Orphans() diff -Nru haskell-storable-complex-0.2.2/storable-complex.cabal haskell-storable-complex-0.2.3.0/storable-complex.cabal --- haskell-storable-complex-0.2.2/storable-complex.cabal 2015-01-02 03:35:00.000000000 +0000 +++ haskell-storable-complex-0.2.3.0/storable-complex.cabal 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +1,12 @@ name: storable-complex -version: 0.2.2 +version: 0.2.3.0 synopsis: Storable instance for Complex description: Provides a Storable instance for Complex which is binary - compatible with C99, C++ and Fortran complex data types. - . - The only purpose of this package is to provide a standard - location for this instance so that other packages needing - this instance can play nicely together. + compatible with C99, C++ and Fortran complex data types. + . + The only purpose of this package is to provide a standard + location for this instance so that other packages needing + this instance can play nicely together. category: Data license: BSD3 license-file: LICENSE @@ -14,26 +14,21 @@ maintainer: Carter Schonwald homepage: https://github.com/cartazio/storable-complex bug-reports: https://github.com/cartazio/storable-complex/issues -build-type: Simple +build-type: Simple cabal-version: >= 1.6 extra-source-files: - in-base/Foreign/Storable/Complex.hs - out-of-base/Foreign/Storable/Complex.hs .travis.yml + README.md source-repository head type: git location: git@github.com:cartazio/storable-complex.git -flag instanceInBase - description: instance Storable Complex is already in 'base' - default: True + library exposed-modules: Foreign.Storable.Complex - if flag(instanceInBase) - build-depends: base >= 4.8 && < 5 - hs-source-dirs: in-base - else - build-depends: base < 4.8 && >= 4.4 - hs-source-dirs: out-of-base + build-depends: base >= 4 && < 200 + ,base-orphans >= 0.3.2 + + hs-source-dirs: src