---------------------------------------------------------------- -- wren ng thornton ~ 2009.01.29 ---------------------------------------------------------------- Name: logfloat Version: 0.10.0 Cabal-Version: >= 1.2 Build-Type: Simple Stability: experimental Copyright: Copyright (c) 2007--2009 wren ng thornton License: BSD3 License-File: LICENSE Author: wren ng thornton Maintainer: wren@community.haskell.org Homepage: http://code.haskell.org/~wren/ Category: Data, Math, Natural Language Processing Synopsis: Log-domain floating point numbers Description: This module presents a class 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. -- Doing it this way uncovers a bug in Cabal-1.2.3.0: -- "Setup.hs: 'parseField' called on a non-field. This is a bug." --Flag hiddenPrim -- Description: Use GHC 6.10's newly hidden package for GHC.Prim -- if impl(ghc >= 6.10) -- Default: true -- else -- Default: false Library Exposed-Modules: Data.Number.LogFloat , Data.Number.Transfinite , Data.Number.PartialOrd , Hugs.RealFloat Build-Depends: base -- No longer needed since we use GHC.Exts instead -- if flag(hiddenPrim) -- Build-Depends: ghc-prim Hugs-Options: -98 +o -F'cpp -P -D__HUGS__=200609' if impl(ghc < 6.10) GHC-Options: -fno-warn-orphans ---------------------------------------------------------------- ----------------------------------------------------------- fin.