The science-constants-dimensional 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]

Warnings:

Science.Constants.Dimensional is a variant of Science.Constants[1] package, with the only difference is that that the dimensional flavor provides (where applicable) dimensionally-typed constants. The Numeric.Units.Dimensional[2] wrappers allow to write type-safe formulas, for example all of this will successfully type-check:

~$ ghci -XNoImplicitPrelude
λ= import Numeric.Units.Dimensional.Prelude

λ= import Science.Constants.Dimensional

λ= massOfProton + massOfElectron

1.673532715291e-27 kg
λ= massOfProton / massOfElectron

1836.1526719486646

But this will not:

λ= massOfProton / massOfElectron + planckConstant

<interactive>:10:14:
    Couldn't match type `Numeric.NumType.Pos
                           (Numeric.NumType.Pos Numeric.NumType.Zero)'
                  with `Numeric.NumType.Zero'
1
https://hackage.haskell.org/package/science-constants
2
https://hackage.haskell.org/package/dimensional

Properties

Versions0.1.0.0, 0.1.0.1, 0.1.0.1, 0.1.0.2
Change logNone available
Dependenciesbase (==4.6.*), dimensional, numtype, science-constants (>=0.2) [details]
LicenseBSD3
AuthorAnton Vorontsov <anton@enomsg.org>
MaintainerAnton Vorontsov <anton@enomsg.org>
CategoryScience, Math, Physics, Chemistry
Source repositoryhead: darcs clone http://code.haskell.org/science-constants-dimensional
UploadedMon Sep 15 22:19:24 UTC 2014 by cbou

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees