packages feed

vect-0.4.0: vect.cabal

Name:                vect
Version:             0.4.0
Synopsis:            A low-dimensional linear algebra library, tailored to computer graphics.
Description:         A low-dimensional (2, 3 and 4) linear algebra library, 
                     with lots of useful functions. Intended usage is primarily 
                     computer graphics (basic OpenGL support is included).
                     Projective 4 dimensional operations, as used in eg. 
                     OpenGL, are also supported.
                     The base field is either Float or Double.
License:             BSD3
License-file:        LICENSE
Author:              Balazs Komuves
Copyright:           (c) 2008-2009 Balazs Komuves
Maintainer:          bkomuves (plus) hackage (at) gmail (dot) com
Homepage:            http://code.haskell.org/~bkomuves/
Stability:           Experimental
Category:            Graphics, Math
Tested-With:         GHC == 6.10.1
Cabal-Version:       >= 1.6
Build-Type:          Custom

extra-source-files:  src/flt.hs,
                     src/flt/Base.hs,
                     src/flt/Interpolate.hs,
                     src/flt/OpenGL.hs,
                     src/flt/GramSchmidt.hs,
                     src/flt/Util/Dim2.hs,
                     src/flt/Util/Dim3.hs,
                     src/flt/Util/Dim4.hs,
                     src/flt/Util/Projective.hs
                     
Flag splitBase
  Description: Choose the new smaller, split-up base package.

Flag OpenGL
  Description: Compile with OpenGL support 
  Default:     True  
  
Library
  if flag(splitBase)
    Build-Depends:       base >= 3, random 
  else
    Build-Depends:       base <  3

  if flag(OpenGL)
    Build-Depends:       OpenGL
    cpp-options:         -DVECT_OPENGL
    Exposed-Modules:     Data.Vect.Float.OpenGL,                         
                         Data.Vect.Double.OpenGL                         

  Exposed-Modules:     Data.Vect, 
  
                       Data.Vect.Float,
                       Data.Vect.Float.Base, 
                       Data.Vect.Float.Interpolate,
                       Data.Vect.Float.GramSchmidt,
                       Data.Vect.Float.Util.Dim2, 
                       Data.Vect.Float.Util.Dim3, 
                       Data.Vect.Float.Util.Dim4,
                       Data.Vect.Float.Util.Projective,

                       Data.Vect.Double,
                       Data.Vect.Double.Base, 
                       Data.Vect.Double.Interpolate,
                       Data.Vect.Double.GramSchmidt,
                       Data.Vect.Double.Util.Dim2, 
                       Data.Vect.Double.Util.Dim3, 
                       Data.Vect.Double.Util.Dim4,
                       Data.Vect.Double.Util.Projective

  Hs-Source-Dirs:      .
  Extensions:          ForeignFunctionInterface, CPP,
                       MultiParamTypeClasses, FunctionalDependencies,
                       FlexibleInstances, TypeSynonymInstances,
                       GeneralizedNewtypeDeriving

  ghc-options:         -Wall