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

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

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]

Properties

Versions 0.0.1, 0.0.1
Change log ChangeLog.md
Dependencies data-default-class (>=0.0 && <0.1), vector (>=0.5 && <1) [details]
License BSD-3-Clause
Copyright (c) 2015-2016, Peter Trško
Author Peter Trško
Maintainer peter.trsko@gmail.com
Category Data
Home page https://github.com/trskop/data-default-extra
Bug tracker https://github.com/trskop/data-default-extra/issues
Source repo head: git clone git://github.com/trskop/data-default-extra.git
this: git clone git://github.com/trskop/data-default-extra.git(tag vector-v0.0.1)
Uploaded by PeterTrsko at 2016-02-07T21:26:56Z

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for data-default-instances-vector-0.0.1

[back to package description]

data-default-instances-vector

Hackage Hackage Dependencies Haskell Programming Language BSD3 License

Build

Description

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.

License

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

Contributions

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