File: ieee754.cabal

package info (click to toggle)
haskell-ieee754 0.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 148 kB
  • sloc: haskell: 1,229; ansic: 223; makefile: 18
file content (45 lines) | stat: -rw-r--r-- 1,335 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name:            ieee754
version:         0.7.3
homepage:        http://github.com/patperry/hs-ieee754
synopsis:        Utilities for dealing with IEEE floating point numbers
description:
    Utilities for dealing with IEEE floating point numbers, ported
    from the Tango math library; approximate and exact equality
    comparisons for general types.
category:        Math
license:         BSD3
license-file:    LICENSE
copyright:       (c) 2011. Patrick Perry <patperry@gmail.com>
author:          Patrick Perry
maintainer:      Patrick Perry <patperry@gmail.com>
cabal-version: >= 1.2.0
build-type:      Simple
tested-with:     GHC ==6.12.3

extra-source-files: LICENSE.Tango NEWS cbits/feqrel_source.c
                    tests/Makefile tests/Tests.hs

flag big_endian
  description: Build for a big endian machine.  Beware that only
               little endian machines have been tested.
  default:     False

library
    exposed-modules: Data.AEq
                     Numeric.IEEE

    extensions:      FlexibleInstances
                     ForeignFunctionInterface

    build-depends:   base >= 3 && < 5
    ghc-options:     -Wall


    c-sources:       cbits/float.c
                     cbits/double.c

    cc-options:      -Wall --std=c99
    if flag(big_endian)
        cc-options:  -DBIG_ENDIAN

    extra-libraries: m