logfloat-0.13.4: logfloat.cabal
----------------------------------------------------------------
-- wren gayle romano <wren@community.haskell.org> ~ 2021.10.16
----------------------------------------------------------------
-- Cabal >=1.10 is required by Hackage.
Cabal-Version: >= 1.10
Build-Type: Simple
Name: logfloat
Version: 0.13.4
Stability: experimental
Homepage: http://wrengr.org
Author: wren gayle romano
Maintainer: wren@cpan.org
Copyright: Copyright (c) 2007--2021 wren gayle romano
License: BSD3
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
----------------------------------------------------------------
Source-Repository head
Type: git
Location: git://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.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.