build: Add homepage.
[altfloat.git] / altfloat.cabal
blob747bbb5167876463b112ac680fa2276d960b1110
1 Name:               altfloat
2 Version:            0.2
3 License:            OtherLicense
4 License-File:       LICENSE
5 Cabal-Version:      >= 1.2
6 Author:             Nick Bowler
7 Maintainer:         nbowler@draconx.ca
8 Homepage:           http://repo.or.cz/w/altfloat.git
9 Stability:          experimental
10 Category:           Numerical
11 Build-Type:         Simple
12 Extra-Source-Files: configure.ac, configure, altfloat.buildinfo.in, cfloat.h
13 Extra-Tmp-Files:    altfloat.buildinfo, config.status config.log, config.cache
14 Synopsis:           Alternative floating point support for GHC.
15 Description:
16     A replacement for the standard Haskell floating point types and supporting
17     functions.  There are a number of shortcomings which I feel severely hinder
18     Haskell's utility for numerical computation.  These shortcomings include
19     .
20     * There is no way to sanely convert between Haskell's floating types -- not
21     even between Double and CDouble.  The implementation of the 'realToFrac'
22     function goes through 'Rational', which loses information as 'Rational'
23     cannot represent all floating point values.
24     .
25     * Making floating types an instance of 'Ord' makes no sense.  'Ord' is for
26     totally ordered data types, which floats are not.  As a result, a number of
27     library functions (such as 'max' and 'sort') produce nonsensical results.
28     .
29     * The 'Enum' instance for floating types similarly makes little sense.
30     While 'fromEnum' and 'toEnum' functions use 'Int' instead of 'Integer',
31     limiting their usefulness, 'pred' and 'succ' can be defined in a much more
32     useful way.
33     .
34     * Functions that should care about negative zeros, such as 'signum' and
35     'abs', do not.
36     .
37     * Some functions, such as 'floor', have nonsensical behaviour for
38     non-finite input.
39     .
40     * The selection of floating point library functions pales in comparison to
41     C.  This problem is made worse since, as noted above, it is impossible to
42     convert losslessly from 'Double' to 'CDouble' in order to use the FFI.
43     .
44     * There is no mechanism for handling rounding modes or exceptions.
45     .
46     This package is intended to address all of the above issues, and more.  All
47     are currently addressed except for rounding modes and exceptions.
48     .
49     Also provided, for convenience, is an alternative to the standard Prelude
50     which includes features from this library and the non-overlapping parts of
51     the standard Prelude.
53 Library
54     Build-Depends: base >= 4 && < 5, ghc-prim, integer
55     C-Sources: cfloat.c
56     Exposed-Modules:
57         Data.Floating.CMath,
58         Data.Floating.Classes,
59         Data.Floating.Types,
60         Data.Floating.Double,
61         Data.Floating.Prelude,
62         Data.Floating,
63         Data.Poset
64     Other-Modules:
65         Data.Floating.Instances, Data.Poset.Internal, Data.Poset.Instances