packages feed

logfloat-0.13.3.3: logfloat.cabal

----------------------------------------------------------------
-- wren gayle romano <wren@community.haskell.org>   ~ 2015.10.02
----------------------------------------------------------------

-- By and large Cabal >=1.2 is fine; but
-- * >=1.6 gives tested-with: and source-repository:
-- * >=1.8 allows executables to build-depends: on the library
-- * >=1.9.2 allows Test-Suite
Cabal-Version:  >= 1.9.2
Build-Type:     Simple

Name:           logfloat
Version:        0.13.3.3
Stability:      experimental
Homepage:       http://code.haskell.org/~wren/
Author:         wren gayle romano
Maintainer:     wren@community.haskell.org
Copyright:      Copyright (c) 2007--2015 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

-- Cf., <https://travis-ci.org/wrengr/bytestring-lexing>
Tested-With:
    GHC ==7.6.1, GHC ==7.6.2, GHC ==7.6.3,
    GHC ==7.8.1, GHC ==7.8.2, GHC ==7.8.3, GHC ==7.8.4,
    GHC ==7.10.1, GHC ==7.10.2

----------------------------------------------------------------
Source-Repository head
    Type:     darcs
    Location: http://community.haskell.org/~wren/logfloat

----------------------------------------------------------------
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
    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.