refined: Refinement types with static and runtime checking

[ data, library, mit ] [ Propose Tags ] [ Report a vulnerability ]

For an extensive introduction to the library please follow to this blog-post.


[Skip to Readme]

Flags

Manual Flags

NameDescriptionDefault
aeson

You can disable the use of the aeson package using `-f-aeson`. . This may be useful for accelerating builds in sandboxes for expert users.

Enabled
quickcheck

You can disable the use of the QuickCheck package using `-f-QuickCheck`. . This may be useful for accelerating builds in sandboxes for expert users.

Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.1.1.0, 0.1.2, 0.1.2.1, 0.2.0.0, 0.2.1.0, 0.2.2.0, 0.2.3.0, 0.3.0.0, 0.4, 0.4.1, 0.4.2, 0.4.2.1, 0.4.2.2, 0.4.3, 0.4.4, 0.5, 0.5.1, 0.6, 0.6.1, 0.6.2, 0.6.3, 0.7, 0.8, 0.8.1, 0.8.2 (info)
Change log changelog.md
Dependencies aeson (>=0.9), base (>=4.11 && <5), bytestring (>=0.10), deepseq (>=1.4), exceptions (>=0.8), hashable (>=1.0), mtl (>=2.2.2), QuickCheck (>=2.1), template-haskell (>=2.9), text (>=1.2), these-skinny (>=0.7.5) [details]
Tested with ghc ==8.4.4, ghc ==8.6.5, ghc ==8.8.5, ghc ==8.10.7, ghc ==9.0.2, ghc ==9.2.4, ghc ==9.4.2, ghc ==9.6.1
License MIT
Copyright Copyright © 2015, Nikita Volkov Copyright © 2018, Remy Goldschmidt Copyright © 2020, chessai
Author Nikita Volkov <nikita.y.volkov@mail.ru>
Maintainer chessai <chessai1996@gmail.com>
Category Data
Home page https://github.com/nikita-volkov/refined
Bug tracker https://github.com/nikita-volkov/refined/issues
Source repo head: git clone git://github.com/nikita-volkov/refined.git
Uploaded by chessai at 2024-05-09T20:45:52Z
Distributions LTSHaskell:0.8.2, NixOS:0.8.2, Stackage:0.8.2
Reverse Dependencies 18 direct, 3 indirect [details]
Downloads 13561 total (96 in the last 30 days)
Rating 2.5 (votes: 3) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for refined-0.8.2

[back to package description]

refined

Build Status

In type theory, a refinement type is a type endowed with a predicate which is assumed to hold for any element of the refined type.

This library allows one to capture the idea of a refinement type using the Refined type. A Refined p x wraps a value of type x, ensuring that it satisfies a type-level predicate p.

A simple introduction to this library can be found here: http://nikita-volkov.github.io/refined/