vector-th-unbox 0.1.0.1 → 0.1.0.2
raw patch · 2 files changed
+11/−4 lines, 2 filesdep ~basedep ~template-haskelldep ~vectorPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, template-haskell, vector
API changes (from Hackage documentation)
Files
Data/Vector/Unboxed/Deriving.hs view
@@ -1,6 +1,9 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE TemplateHaskell #-}+#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 702 {-# LANGUAGE Trustworthy #-}+#endif {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE ViewPatterns #-} {-# OPTIONS -Wall #-}@@ -59,7 +62,11 @@ wrap :: Name -> [(Pat, Exp)] -> (Exp -> Exp) -> [Dec] wrap fun (unzip -> (pats, exps)) coerce = [inline, method] where base = mkName (nameBase fun)+#if MIN_VERSION_template_haskell(2,8,0) inline = PragmaD (InlineP base Inline FunLike AllPhases)+#else+ inline = PragmaD (InlineP base (InlineSpec True False Nothing))+#endif body = coerce $ foldl AppE (VarE fun) exps method = FunD base [Clause pats (NormalB body) []]
vector-th-unbox.cabal view
@@ -1,5 +1,5 @@ name: vector-th-unbox-version: 0.1.0.1+version: 0.1.0.2 synopsis: Deriver for Data.Vector.Unboxed using Template Haskell description: A Template Haskell deriver for unboxed vectors, given a pair of coercion@@ -24,9 +24,9 @@ Data.Vector.Unboxed.Deriving build-depends:- base >= 4.5 && < 5,- template-haskell >= 2.8,- vector >= 0.9+ base >= 4.3 && < 5,+ template-haskell >= 2.5,+ vector >= 0.7 -- vim: et sw=4 ts=4 sts=4: