hw-vector (empty) → 0.0.0.1
raw patch · 6 files changed
+95/−0 lines, 6 filesdep +QuickCheckdep +basedep +bytestringsetup-changed
Dependencies added: QuickCheck, base, bytestring, hspec, hw-prim, hw-vector, vector
Files
- LICENSE +30/−0
- README.md +6/−0
- Setup.hs +2/−0
- hw-vector.cabal +43/−0
- src/HaskellWorks/Data/Vector/AsVector64.hs +13/−0
- test/Spec.hs +1/−0
+ LICENSE view
@@ -0,0 +1,30 @@+Copyright John Ky (c) 2016++All rights reserved.++Redistribution and use in source and binary forms, with or without+modification, are permitted provided that the following conditions are met:++ * Redistributions of source code must retain the above copyright+ notice, this list of conditions and the following disclaimer.++ * Redistributions in binary form must reproduce the above+ copyright notice, this list of conditions and the following+ disclaimer in the documentation and/or other materials provided+ with the distribution.++ * Neither the name of Author name here nor the names of other+ contributors may be used to endorse or promote products derived+ from this software without specific prior written permission.++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ README.md view
@@ -0,0 +1,6 @@+# hw-vector+[](https://circleci.com/gh/haskell-works/hw-vector/tree/0-branch)++Primitive types library.++Report dependency build errors: https://github.com/haskell-infra/hackage-trustees
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ hw-vector.cabal view
@@ -0,0 +1,43 @@+name: hw-vector+version: 0.0.0.1+synopsis: Vector type with convenient typeclass instances+description: Please see README.md+homepage: http://github.com/haskell-works/hw-vector#readme+license: BSD3+license-file: LICENSE+author: John Ky+maintainer: newhoggy@gmail.com+copyright: 2016 John Ky+category: Data+stability: Experimental+build-type: Simple+extra-source-files: README.md+cabal-version: >= 1.22++library+ hs-source-dirs: src+ exposed-modules: HaskellWorks.Data.Vector.AsVector64+ -- , HaskellWorks.Data.Vector.Storable+ build-depends: base >= 4 && < 5+ , bytestring+ , hw-prim+ , vector++ default-language: Haskell2010+ ghc-options: -Wall -O2 -msse4.2++test-suite hw-vector-test+ type: exitcode-stdio-1.0+ hs-source-dirs: test+ main-is: Spec.hs+ build-depends: base >= 4 && < 5+ , hspec+ , hw-vector+ , QuickCheck+ , vector+ ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall+ default-language: Haskell2010++source-repository head+ type: git+ location: https://github.com/haskell-works/hw-vector
+ src/HaskellWorks/Data/Vector/AsVector64.hs view
@@ -0,0 +1,13 @@+{-# LANGUAGE FlexibleInstances #-}+module HaskellWorks.Data.Vector.AsVector64+ ( AsVector64(..)+ ) where++import qualified Data.Vector.Storable as DVS+import Data.Word++class AsVector64 a where+ asVector64 :: a -> DVS.Vector Word64++instance AsVector64 (DVS.Vector Word64) where+ asVector64 = id
+ test/Spec.hs view
@@ -0,0 +1,1 @@+{-# OPTIONS_GHC -F -pgmF hspec-discover #-}