vector-th-unbox 0.2.1.8 → 0.2.1.9
raw patch · 4 files changed
+22/−9 lines, 4 filesdep ~template-haskell
Dependency ranges changed: template-haskell
Files
- CHANGELOG.md +7/−0
- Data/Vector/Unboxed/Deriving.hs +6/−8
- README.md +1/−0
- vector-th-unbox.cabal +8/−1
+ CHANGELOG.md view
@@ -0,0 +1,7 @@+## 0.2.1.9++* Fixed the build failure on GHC 7.10.3 (and older)++## 0.2.1.8++* Supported GHC 9.0.1
Data/Vector/Unboxed/Deriving.hs view
@@ -119,16 +119,13 @@ let s = VarT (mkName "s") #if MIN_VERSION_template_haskell(2,11,0) let lazy = Bang NoSourceUnpackedness NoSourceStrictness-# define MAYBE_KIND Nothing # define MAYBE_OVERLAP Nothing #else let lazy = NotStrict-# define MAYBE_KIND # define MAYBE_OVERLAP #endif let newtypeMVector = newtypeInstD' ''MVector [s, typ] (NormalC mvName [(lazy, ConT ''MVector `AppT` s `AppT` rep)])- MAYBE_KIND let mvCon = ConE mvName let instanceMVector = InstanceD MAYBE_OVERLAP cxts (ConT ''M.MVector `AppT` ConT ''MVector `AppT` typ) $ concat@@ -150,7 +147,6 @@ let newtypeVector = newtypeInstD' ''Vector [typ] (NormalC vName [(lazy, ConT ''Vector `AppT` rep)])- MAYBE_KIND let vCon = ConE vName let instanceVector = InstanceD MAYBE_OVERLAP cxts@@ -167,12 +163,14 @@ , newtypeMVector, instanceMVector , newtypeVector, instanceVector ] -newtypeInstD' :: Name -> [Type] -> Con -> Maybe Kind -> Dec-newtypeInstD' name args kind con = +newtypeInstD' :: Name -> [Type] -> Con -> Dec+newtypeInstD' name args con = #if MIN_VERSION_template_haskell(2,15,0)- NewtypeInstD [] Nothing (foldl AppT (ConT name) args) con kind []+ NewtypeInstD [] Nothing (foldl AppT (ConT name) args) Nothing con []+#elif MIN_VERSION_template_haskell(2,11,0)+ NewtypeInstD [] name args Nothing con [] #else- NewtypeInstD [] name args con kind []+ NewtypeInstD [] name args con [] #endif #undef __GLASGOW_HASKELL__
+ README.md view
@@ -0,0 +1,1 @@+<http://hackage.haskell.org/package/vector-th-unbox/docs/Data-Vector-Unboxed-Deriving.html>
vector-th-unbox.cabal view
@@ -1,5 +1,5 @@ name: vector-th-unbox-version: 0.2.1.8+version: 0.2.1.9 synopsis: Deriver for Data.Vector.Unboxed using Template Haskell description: A Template Haskell deriver for unboxed vectors, given a pair of coercion@@ -17,7 +17,14 @@ build-type: Simple cabal-version: >= 1.10 tested-with:+ GHC == 7.10.3,+ GHC == 8.0.2,+ GHC == 8.2.2,+ GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.3, GHC == 8.10.1, GHC == 9.0.1+extra-source-files:+ CHANGELOG.md+ README.md source-repository head type: git