data-default-instances-vector: Default instances for types defined in vector package

[ bsd3, data, library ] [ Propose Tags ]

Orphan instances for Default type class, which is defined in package data-default-class.

Following Default instances are provided:

instance Default (Vector a) where
    def = empty

-- Storable Vector:
instance Storable a => Default (Vector a) where
    def = empty

-- Unboxed Vector:
instance Unbox a => Default (Vector a) where
    def = empty

[Skip to Readme]
Versions 0.0.1
Change log
Dependencies data-default-class (>=0.0 && <0.2), vector (>=0.5 && <1) [details]
License BSD-3-Clause
Copyright (c) 2015-2016, Peter Trško
Author Peter Trško
Revised Revision 1 made by PeterTrsko at Thu Jan 5 20:07:21 UTC 2017
Category Data
Home page
Bug tracker
Source repo head: git clone git://
this: git clone git:// vector-v0.0.1)
Uploaded by PeterTrsko at Sun Feb 7 21:27:28 UTC 2016
Distributions NixOS:0.0.1
Downloads 405 total (17 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-02-12 [all 1 reports]
Hackage Matrix CI




Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees

Readme for data-default-instances-vector-0.0.1

[back to package description]


Hackage Hackage Dependencies Haskell Programming Language BSD3 License



Default instances for types in vector package:

instance Default (Vector a) where
    def = empty

instance Storable a => Default (Storable.Vector a) where
    def = Storable.empty

instance Unbox a => Default (Unboxed.Vector a) where
    def = Unboxed.empty

This package is intended to be used in conjunction with data-default package or directly with data-default-class package.


The BSD 3-Clause License, see LICENSE file for details.


Contributions, pull requests and bug reports are welcome! Please don't be afraid to contact author using GitHub or by e-mail.