packages feed

vector-th-unbox 0.2 → 0.2.0.1

raw patch · 2 files changed

+8/−4 lines, 2 files

Files

Data/Vector/Unboxed/Deriving.hs view
@@ -25,13 +25,17 @@ succinctly:  >derivingUnbox "Complex"->    [d| (Unbox a) ⇒ Complex a → (a, a) |]+>    [t| (Unbox a) ⇒ Complex a → (a, a) |] >    [| \ (r :+ i) → (r, i) |] >    [| \ (r, i) → r :+ i |]  Requires the @MultiParamTypeClasses@, @TemplateHaskell@, @TypeFamilies@ and-probably the @FlexibleInstances@ @LANGUAGE@ extensions.+probably the @FlexibleInstances@ @LANGUAGE@ extensions. Older versions of+GHC needs the 'G.Vector' and 'M.MVector' class method names in scope: +>import qualified Data.Vector.Generic+>import qualified Data.Vector.Generic.Mutable+ -}  module Data.Vector.Unboxed.Deriving (derivingUnbox) where@@ -70,7 +74,7 @@ additional @Default@ (see the @data-default@ package) constraint. Thus:  >derivingUnbox "Maybe"->    [d| (Default a, Unbox a) ⇒ Maybe a → (Bool, a) |]+>    [t| (Default a, Unbox a) ⇒ Maybe a → (Bool, a) |] >    [| maybe (False, def) (\ x → (True, x)) |] >    [| \ (b, x) → if b then Just x else Nothing |] -}
vector-th-unbox.cabal view
@@ -1,5 +1,5 @@ name:           vector-th-unbox-version:        0.2+version:        0.2.0.1 synopsis:       Deriver for Data.Vector.Unboxed using Template Haskell description:     A Template Haskell deriver for unboxed vectors, given a pair of coercion