---------------------------------------------------------------- -- wren ng thornton ~ 2013.05.11 ---------------------------------------------------------------- -- By and large Cabal >=1.2 is fine; but >= 1.6 gives tested-with: -- and source-repository:. Cabal-Version: >= 1.6 Build-Type: Simple Name: logfloat Version: 0.12.1.6 Stability: experimental Homepage: http://code.haskell.org/~wren/ Author: wren ng thornton Maintainer: wren@community.haskell.org Copyright: Copyright (c) 2007--2013 wren ng thornton 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. Tested-With: GHC == 6.12.1, GHC == 7.6.1 Extra-source-files: INSTALL, VERSION Source-Repository head Type: darcs Location: http://community.haskell.org/~wren/logfloat ---------------------------------------------------------------- Flag base4 Default: True Description: base-4.0 emits "Prelude deprecated" messages in order to get people to be explicit about which version of base they use. Flag splitBase Default: True Description: base-3.0 (GHC 6.8) broke out the packages: array, bytestring, containers, directory, old-locale, old-time, packedstring, pretty, process, random. Flag useFFI Default: True Description: Use FFI to link C's log1p. Improves accuracy and same performance. Disable only if your compiler doesn't support FFI. ---------------------------------------------------------------- Library Hs-Source-Dirs: src Exposed-Modules: Data.Number.LogFloat , Data.Number.RealToFrac , Data.Number.Transfinite , Data.Number.PartialOrd , Hugs.RealFloat -- I think this is all that needs doing to get rid of the warnings? if flag(base4) Build-Depends: base >= 4 && < 5 else Build-Depends: base < 4 if flag(splitBase) Build-depends: base >= 3.0, array else Build-depends: base < 3.0 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 (GHC 6.10.1): Can't mix FFI and -fvia-C -- -- This is a momentary hack to keep it for 6.8 -- TODO: see if -fasm suffices for the benefits if impl(ghc < 6.10) GHC-Options: -fvia-C -optc-O3 -- 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.