dollaridoos: A newtype for monetary values

[ bsd3, finance, library ] [ Propose Tags ] [ Report a vulnerability ]

A newtype for money with appropriate operations defined and no nonsensical instances


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Change log CHANGELOG.md
Dependencies base (>=4.5 && <5), profunctors (>=4 && <6), semigroups (>=0.8.4 && <1) [details]
Tested with ghc ==7.4.2, ghc ==7.6.3, ghc ==7.8.4, ghc ==7.10.3, ghc ==8.0.2, ghc ==8.2.1
License BSD-3-Clause
Copyright Copyright (c) 2017, Commonwealth Scientific and Industrial Research Organisation (CSIRO) ABN 41 687 119 230.
Author George Wilson
Maintainer george@wils.online
Category Finance
Home page https://github.com/qfpl/dollaridoos
Bug tracker https://github.com/qfpl/dollaridoos/issues
Source repo head: git clone git://github.com/qfpl/dollaridoos.git
Uploaded by GeorgeWilson at 2017-09-19T07:25:05Z
Distributions NixOS:0.1.0.0
Reverse Dependencies 1 direct, 2 indirect [details]
Downloads 1170 total (4 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-09-19 [all 1 reports]

Readme for dollaridoos-0.1.0.0

[back to package description]

Dollaridoos

Data61

Build Status

The money library provides a typesafe wrapper around numeric types that allows only those operations which are sensible in the context of monetary sums. For instance, adding two monetary values together makes sense, but multiplying money by money doesn't make any sense. Functions are also provided to multiply money by constants, among other things.