persistent-instances: Persistent instances of some useful types (vector, uuids, etc).

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]

Persistent instances of some useful types (vector, uuids, etc), this library contains several sub libraries so you only depend on what you need. Warning: Orphans.


[Skip to Readme]

Properties

Versions 0.1.0.0
Change log None available
Dependencies base (>=4 && <5), bytestring (<0.13), path-pieces (<0.3), persistent (<2.19), text (<2.2), vector-sized (<1.7) [details]
License MIT
Author Eiko
Maintainer eikochanowo@outlook.com
Category Database
Source repo head: git clone https://github.com/Eiko-Tokura/persistent-instances.git
Uploaded by eiko at 2026-03-11T08:20:26Z

library persistent-instances:postgresql-vector

Modules

  • Database
    • Persist
      • Postgresql
        • Database.Persist.Postgresql.Vector

library persistent-instances:uuid

Modules

  • Database
    • Persist
      • Database.Persist.UUID

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for persistent-instances-0.1.0.0

[back to package description]

persistent-instances

Small persistent instance helpers for useful types, split into public sublibraries, so users can depend on only the pieces they need. (e.g. if you only use uuid, you won't need to depend on vector dependencies).

These are useful but there are no official instances defined for them.

Warning: these are orphan instances, be careful when using them in public libraries.

A future alternative to orphans would be defining a library specific newtype wrapper.

Available sublibraries

Usage

Add one or both sublibraries to build-depends:

build-depends:
    persistent-instances:uuid
build-depends:
    persistent-instances:postgresql-vector

Then import the corresponding module:

import Database.Persist.UUID
import Database.Persist.Postgresql.Vector