-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlogfloat.cabal
96 lines (84 loc) · 3.22 KB
/
logfloat.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
Cabal-Version: 2.2
-- Cabal >=2.2 is required for:
-- <https://cabal.readthedocs.io/en/latest/cabal-package.html#common-stanzas>
-- Since 2.1, the Cabal-Version must be the absolutely first thing
-- in the file, even before comments. Also, no longer uses ">=".
-- <https://github.com/haskell/cabal/issues/4899>
----------------------------------------------------------------
-- wren gayle romano <[email protected]> ~ 2024-08-29
----------------------------------------------------------------
Name: logfloat
Version: 0.14.0.1
Build-Type: Simple
Stability: experimental
Homepage: https://wrengr.org/software/hackage.html
Bug-Reports: https://github.com/wrengr/logfloat/issues
Author: wren gayle romano
Maintainer: [email protected]
Copyright: 2007–2024 wren romano
-- Cabal-2.2 requires us to say "BSD-3-Clause" not "BSD3"
License: BSD-3-Clause
License-File: LICENSE
Category: Data, Math, Natural Language Processing, Statistics
Synopsis:
Log-domain floating point numbers
Description:
This module presents a type for storing numbers in the log-domain.
The main reason for doing this is to prevent underflow when
multiplying many probabilities as is done in Hidden Markov
Models. It is also helpful for preventing overflow.
Extra-source-files:
README.md, CHANGELOG
-- This should work as far back as GHC 7.6.1, but we don't verify that by CI.
-- <https://github.com/wrengr/logfloat/actions?query=workflow%3Aci>
Tested-With:
GHC ==8.0.2,
GHC ==8.2.2,
GHC ==8.4.4,
GHC ==8.6.5,
GHC ==8.8.4,
GHC ==8.10.3,
GHC ==9.0.1,
GHC ==9.2.4,
GHC ==9.4.8,
GHC ==9.6.5,
GHC ==9.8.2,
GHC ==9.10.1
----------------------------------------------------------------
Source-Repository head
Type: git
Location: https://github.com/wrengr/logfloat.git
----------------------------------------------------------------
Flag useFFI
Default: True
Description:
Use FFI to link C's log1p. Improves accuracy while maintaining
the same performance. Disable only if your compiler doesn't
support FFI.
----------------------------------------------------------------
Library
Default-Language: Haskell2010
Hs-Source-Dirs: src
Exposed-Modules: Data.Number.LogFloat
, Data.Number.LogFloat.Raw
, Data.Number.RealToFrac
, Data.Number.Transfinite
, Data.Number.PartialOrd
, Hugs.RealFloat
Build-Depends: base >= 4.6 && < 5
-- TODO: do we need any version constraints on array?
, array
if flag(useFFI)
-- BUG (Cabal 1.2 + Haddock): See the INSTALL file.
--GHC-Options: -D__USE_FFI__
CPP-Options: -D__USE_FFI__
includes: math.h
extra-libraries: m
-- BUG (Cabal <= 1.6 + Hugs): See the INSTALL file.
Hugs-Options: -98 +o
if impl(hugs)
-- BUG: (Cabal 1.2 + Haddock) See the INSTALL file.
--GHC-Options: -D__HUGS__=200609
CPP-Options: -D__HUGS__=200609
----------------------------------------------------------------
----------------------------------------------------------- fin.