floatshow / floatshow.cabal

-- floatshow.cabal auto-generated by cabal init. For additional
-- options, see
-- http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html#pkg-descr.
-- The name of the package.
Name:                floatshow

-- The package version. See the Haskell package versioning policy
-- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for
-- standards guiding when and how versions should be incremented.
Version:             0.2.3

-- Constraint on the version of Cabal needed to build this package.
Cabal-version:       >=1.6

-- A short (one-line) description of the package.
Synopsis:            Alternative faster String representations for Double and Float,
                     String representations for more general numeric types.

-- A longer description of the package.
Description:         The String representations provided by this package
                     are generally longer than show's output, which constructs
                     the shortest string that is parsed as the original
                     number by read. This requires some time-consuming checks,
                     so show is slow for floating-point numbers. By producing
                     a digit-string guaranteed to be long enough to uniquely
                     determine the number without caring whether there's a
                     shorter representation, the display functions of this
                     package can be faster, sometimes by a big margin.

                     Text.FShow.Raw provides building blocks for representations
                     of numeric types which don't belong to RealFloat but have
                     some of its functionality.

                     The bulk of the code is a minor modification of code from
                     the base package, whence the GHC License is included as
                     an extra-source-file.

-- URL for the project homepage or repository.
Homepage:            https://bitbucket.org/dafis/floatshow
Bug-reports:         https://bitbucket.org/dafis/floatshow/issues

-- The license under which the package is released.
License:             BSD3

-- The file containing the license text.
License-file:        LICENSE

-- The package author(s).
Author:              Daniel Fischer

-- An email address to which users can send suggestions, bug reports,
-- and patches.
Maintainer:          daniel.is.fischer@googlemail.com

-- A copyright notice.
Copyright:           (c) 2011 Daniel Fischer

Category:            Text

Build-type:          Simple

-- Extra files to be distributed with the package, such as examples or
-- a README.
Extra-source-files:  GHC_LICENCE
                     README
                     Changes

Flag gmp
  Description:       Use integer-gmp
  Default:           True

Library
  -- Modules exported by the library.
  Exposed-modules:   Text.FShow.RealFloat
                     Text.FShow.Raw

  -- Packages needed in order to build this package.
  Build-depends:     base >= 4 && < 5, array >= 0.1 && < 0.5
  if flag(gmp)
    Build-depends:   integer-gmp
  else
    Build-depends:   integer-simple

  -- Modules not exported by this package.
  Other-modules:     Text.FShow.RealFloat.Internals

  -- Extra tools (e.g. alex, hsc2hs, ...) needed to build the source.
  -- Build-tools:
  -- Extensions:        CPP, MagicHash, UnboxedTuples, BangPatterns
  ghc-options:       -O2 -fspec-constr-count=5 -Wall

source-repository head
  type:     mercurial
  location: https://bitbucket.org/dafis/floatshow
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.