-
Notifications
You must be signed in to change notification settings - Fork 19
/
units.cabal
108 lines (95 loc) · 3.63 KB
/
units.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: units
version: 2.4.1.5
cabal-version: >= 1.10
synopsis: A domain-specific type system for dimensional analysis
homepage: https://github.com/goldfirere/units
category: Math
author: Richard Eisenberg <rae@richarde.dev>, Takayuki Muranushi <muranushi@gmail.com>
maintainer: Richard Eisenberg <rae@richarde.dev>
bug-reports: https://github.com/goldfirere/units/issues
stability: experimental
extra-source-files: README.md
, CHANGES.md
license: BSD3
license-file: LICENSE
build-type: Simple
Tested-With: GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.1, GHC == 8.6.3, GHC == 8.8.1, GHC == 8.10.4, GHC == 9.0.1, GHC == 9.2.1
description:
The units package provides a mechanism for compile-time
dimensional analysis in Haskell programs. It defines an embedded
type system based on units-of-measure. The units defined are fully
extensible, and need not relate to physical properties.
The package supports defining multiple inter-convertible units,
such as Meter and Foot. When extracting a number from a
dimensioned quantity, the desired unit must be specified, and the
value is converted into that unit.
If you are looking for specific systems of units (such as SI),
please see the @units-defs@ package.
Tests for this package are in a companion package @units-test@,
available from this package's source repository.
The Haddock documentation is insufficient for using the units
package. Please see the README file, available from the package
home page.
source-repository this
type: git
location: https://github.com/goldfirere/units.git
tag: v2.4.1.5
library
ghc-options: -Wall
if impl(ghc >= 7.10)
ghc-options: -fno-warn-unticked-promoted-constructors
if impl(ghc >= 9.0)
build-depends: base >= 4.7 && < 5
, th-desugar >= 1.5.4
, singletons == 3.*
, singletons-th == 3.*
, singletons-base == 3.*
, vector-space >= 0.8
, linear >= 1.16.2
, template-haskell
, mtl >= 1.1
, multimap >= 1.2
, syb >= 0.3
, containers >= 0.4
, units-parser >= 0.1 && < 1.0
, lens >= 4 && < 6
, deepseq >= 1.1.0.0 && < 1.6
else
build-depends: base >= 4.7 && < 5
, th-desugar >= 1.5.4
, singletons >= 0.9 && < 3
-- keep it < 3 to avoid the need for singletons-th and -base
, vector-space >= 0.8
, linear >= 1.16.2
, template-haskell
, mtl >= 1.1
, multimap >= 1.2
, syb >= 0.3
, containers >= 0.4
, units-parser >= 0.1 && < 1.0
, lens >= 4 && < 6
, deepseq >= 1.1.0.0 && < 1.6
exposed-modules:
Data.Metrology,
Data.Metrology.Internal,
Data.Metrology.Show,
Data.Metrology.Unsafe,
Data.Metrology.Z,
Data.Metrology.Set,
Data.Metrology.Vector,
Data.Metrology.Linear,
Data.Metrology.Parser,
Data.Metrology.Poly,
Data.Metrology.TH,
Data.Metrology.Quantity
other-modules:
Data.Metrology.Factor,
Data.Metrology.LCSU,
Data.Metrology.Qu,
Data.Metrology.Dimensions,
Data.Metrology.Units,
Data.Metrology.Combinators,
Data.Metrology.Validity
-- cabal now recommends that TH be explicitly listed in cabal files
other-extensions: TemplateHaskell
default-language: Haskell2010