Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Initial semblance.cabal generated by cabal init. For further
- -- documentation, see http://haskell.org/cabal/users-guide/
- -- The name of the package.
- name: gudni
- -- The package version. See the Haskell package versioning policy (PVP)
- -- for standards guiding when and how versions should be incremented.
- -- https://wiki.haskell.org/Package_versioning_policy
- -- PVP summary: +-+------- breaking API changes
- -- | | +----- non-breaking API additions
- -- | | | +--- code changes with no API change
- version: 0.1.0.0
- -- A short (one-line) description of the package.
- synopsis: Haskell-centric Fast Accurate Rasterizer
- -- A longer description of the package.
- -- description:
- -- The license under which the package is released.
- license: BSD3
- -- The file containing the license text.
- license-file: LICENSE
- -- The package author(s).
- author: Ian Bloom
- -- An email address to which users can send suggestions, bug reports, and
- -- patches.
- maintainer: ianmbloom@gmail.com
- -- A copyright notice.
- -- copyright:
- category: Graphics
- build-type: Simple
- -- Extra files to be distributed with the package, such as examples or a
- -- README.
- extra-source-files: ChangeLog.md
- , src/Graphics/Gudni/Raster/Dag/OpenCL/Kernels.cl
- -- Constraint on the version of Cabal needed to build this package.
- cabal-version: >=1.10
- flag benchmarks
- description: Build benchmarks
- default: True
- flag trace
- description: Build Rasterizer Trace Visualizer
- default: True
- library
- -- Modules exported by the library.
- exposed-modules: Graphics.Gudni.Application
- , Graphics.Gudni.Base
- , Graphics.Gudni.Figure
- , Graphics.Gudni.Interface
- , Graphics.Gudni.Layout
- , Graphics.Gudni.ShapeTree
- , Graphics.Gudni.Draw
- , Graphics.Gudni.Image
- , Graphics.Gudni.Util.CTypeConversion
- , Graphics.Gudni.Util.CurvePair
- , Graphics.Gudni.Util.MonadST
- , Graphics.Gudni.Util.Debug
- , Graphics.Gudni.Util.FlattenTree
- , Graphics.Gudni.Util.MonadUnique
- , Graphics.Gudni.Util.Segment
- , Graphics.Gudni.Util.StorableM
- , Graphics.Gudni.Util.Subdividable
- , Graphics.Gudni.Util.Util
- , Graphics.Gudni.Util.Shuffle
- , Graphics.Gudni.Util.TreeOrderTable
- , Graphics.Gudni.Raster.Dag.ConfineTree.Add
- , Graphics.Gudni.Raster.Dag.ConfineTree.Build
- , Graphics.Gudni.Raster.Dag.ConfineTree.Decorate
- , Graphics.Gudni.Raster.Dag.ConfineTree.Depth
- , Graphics.Gudni.Raster.Dag.ConfineTree.Query
- , Graphics.Gudni.Raster.Dag.ConfineTree.Sweep
- , Graphics.Gudni.Raster.Dag.ConfineTree.Traverse
- , Graphics.Gudni.Raster.Dag.ConfineTree.Type
- , Graphics.Gudni.Raster.Dag.ConfineTree.Storage
- , Graphics.Gudni.Raster.Dag.ConfineTree.Out
- , Graphics.Gudni.Raster.Dag.Constants
- , Graphics.Gudni.Raster.Dag.Fabric.Combine.Type
- , Graphics.Gudni.Raster.Dag.Fabric.Combine.Tag
- , Graphics.Gudni.Raster.Dag.Fabric.Combine.Apply
- , Graphics.Gudni.Raster.Dag.Fabric.Ray.Class
- , Graphics.Gudni.Raster.Dag.Fabric.Ray.Answer
- , Graphics.Gudni.Raster.Dag.Fabric.Filter.Type
- , Graphics.Gudni.Raster.Dag.Fabric.Filter.Tag
- , Graphics.Gudni.Raster.Dag.Fabric.Transformer.Type
- , Graphics.Gudni.Raster.Dag.Fabric.Transformer.Storage
- , Graphics.Gudni.Raster.Dag.Fabric.Substance.Type
- , Graphics.Gudni.Raster.Dag.Fabric.Substance.Storage
- , Graphics.Gudni.Raster.Dag.Fabric.Type
- , Graphics.Gudni.Raster.Dag.Fabric.Tag
- , Graphics.Gudni.Raster.Dag.Fabric.Traverse
- , Graphics.Gudni.Raster.Dag.Fabric.Out
- , Graphics.Gudni.Raster.Dag.Fabric.Storage
- , Graphics.Gudni.Raster.Dag.Fabric.Serialize
- , Graphics.Gudni.Raster.Dag.FromLayout
- , Graphics.Gudni.Raster.Dag.ConfineTree.Primitive.Constants
- , Graphics.Gudni.Raster.Dag.ConfineTree.Primitive.Cross
- , Graphics.Gudni.Raster.Dag.ConfineTree.Primitive.Stack
- , Graphics.Gudni.Raster.Dag.ConfineTree.Primitive.Storage
- , Graphics.Gudni.Raster.Dag.ConfineTree.Primitive.Tag
- , Graphics.Gudni.Raster.Dag.ConfineTree.Primitive.Type
- , Graphics.Gudni.Raster.Dag.ConfineTree.Primitive.WithinBox
- , Graphics.Gudni.Raster.Dag.Haskell.Rasterizer
- , Graphics.Gudni.Raster.Dag.OpenCL.CallKernels
- , Graphics.Gudni.Raster.Dag.OpenCL.EmbeddedOpenCLSource
- , Graphics.Gudni.Raster.Dag.OpenCL.PrepareBuffers
- , Graphics.Gudni.Raster.Dag.OpenCL.Rasterizer
- , Graphics.Gudni.Raster.Dag.OpenCL.Setup
- , Graphics.Gudni.Raster.Dag.OpenCL.Instance
- , Graphics.Gudni.Raster.Dag.TagTypes
- , Graphics.Gudni.Raster.Dag.Storage
- , Graphics.Gudni.Raster.Dag.State
- , Graphics.Gudni.Raster.Dag.Serialize
- , Graphics.Gudni.Raster.TextureReference
- , Graphics.Gudni.Raster.Class
- -- Modules included in this library but not exported.
- other-modules: Graphics.Gudni.Base.HasDefault
- , Graphics.Gudni.Base.Reversible
- , Graphics.Gudni.Base.Chain
- , Graphics.Gudni.Base.Loop
- , Graphics.Gudni.Figure.Bezier
- , Graphics.Gudni.Figure.Deknob
- , Graphics.Gudni.Figure.Facet
- , Graphics.Gudni.Figure.Fit
- , Graphics.Gudni.Figure.Principle
- , Graphics.Gudni.Figure.Shape
- , Graphics.Gudni.Figure.Substance
- , Graphics.Gudni.Figure.Transform
- , Graphics.Gudni.Figure.Principle.Affine
- , Graphics.Gudni.Figure.Principle.Angle
- , Graphics.Gudni.Figure.Principle.ArcLength
- , Graphics.Gudni.Figure.Principle.Axis
- , Graphics.Gudni.Figure.Principle.Box
- , Graphics.Gudni.Figure.Principle.Cut
- , Graphics.Gudni.Figure.Principle.Point
- , Graphics.Gudni.Figure.Principle.Space
- , Graphics.Gudni.Figure.Bezier.Type
- , Graphics.Gudni.Figure.Bezier.Cross
- , Graphics.Gudni.Figure.Bezier.Cut
- , Graphics.Gudni.Figure.Bezier.Split
- , Graphics.Gudni.Figure.Bezier.Deknob
- , Graphics.Gudni.Figure.Bezier.Math
- , Graphics.Gudni.Figure.Bezier.WithinBox
- , Graphics.Gudni.Figure.Deknob.Class
- , Graphics.Gudni.Figure.Facet.Cross
- , Graphics.Gudni.Figure.Facet.Triangle
- , Graphics.Gudni.Figure.Facet.BezierTriangle
- , Graphics.Gudni.Figure.Facet.Type
- , Graphics.Gudni.Figure.Facet.Subdivide
- , Graphics.Gudni.Figure.Facet.Traverse
- , Graphics.Gudni.Figure.Facet.Barycentric
- , Graphics.Gudni.Figure.Facet.WithinBox
- , Graphics.Gudni.Figure.Fit.Bezier
- , Graphics.Gudni.Figure.Fit.Box
- , Graphics.Gudni.Figure.Shape.Type
- , Graphics.Gudni.Figure.Shape.Outline
- , Graphics.Gudni.Figure.Shape.OpenCurve
- , Graphics.Gudni.Figure.Substance.Color
- , Graphics.Gudni.Figure.Substance.Gradient
- , Graphics.Gudni.Figure.Substance.Picture
- , Graphics.Gudni.Figure.Substance.Type
- , Graphics.Gudni.Figure.Transform.Transformable
- , Graphics.Gudni.Figure.Transform.Transformer
- , Graphics.Gudni.Figure.Transform.Projection
- , Graphics.Gudni.Figure.Transform.Projection.BezierSpace
- , Graphics.Gudni.Figure.Transform.Projection.Apply
- , Graphics.Gudni.Figure.StorableInstances
- , Graphics.Gudni.Image.Fast2D
- , Graphics.Gudni.Image.Type
- , Graphics.Gudni.Image.Format
- , Graphics.Gudni.Interface.BasicSceneState
- , Graphics.Gudni.Interface.DrawTarget
- , Graphics.Gudni.Interface.FontLibrary
- , Graphics.Gudni.Interface.GLInterop
- , Graphics.Gudni.Interface.Input
- , Graphics.Gudni.Interface.InterfaceSDL
- , Graphics.Gudni.Interface.Query
- , Graphics.Gudni.Interface.ScreenMode
- , Graphics.Gudni.Interface.TargetFromImage
- , Graphics.Gudni.Interface.Time
- , Graphics.Gudni.Draw.Representation
- , Graphics.Gudni.Draw.Representation.Class
- , Graphics.Gudni.Draw.Representation.Primitive
- , Graphics.Gudni.Draw.Representation.ConfineTree
- , Graphics.Gudni.Draw.Representation.DecorateTree
- , Graphics.Gudni.Draw.Representation.RayQuery
- , Graphics.Gudni.Draw.Representation.Fabric
- , Graphics.Gudni.Draw.ArrowHead
- , Graphics.Gudni.Draw.Elipse
- , Graphics.Gudni.Draw.Symbols
- , Graphics.Gudni.Draw.Fuzzy
- , Graphics.Gudni.Draw.Plot
- , Graphics.Gudni.Draw.Rectangle
- , Graphics.Gudni.Draw.Stroke
- , Graphics.Gudni.Draw.Text
- , Graphics.Gudni.Layout.Alignment
- , Graphics.Gudni.Layout.ApplyProximity
- , Graphics.Gudni.Layout.Collect
- , Graphics.Gudni.Layout.Compound
- , Graphics.Gudni.Layout.Empty
- , Graphics.Gudni.Layout.Fill
- , Graphics.Gudni.Layout.Font
- , Graphics.Gudni.Layout.FromLayout
- , Graphics.Gudni.Layout.Grid
- , Graphics.Gudni.Layout.Layout
- , Graphics.Gudni.Layout.Mask
- , Graphics.Gudni.Layout.Overlappable
- , Graphics.Gudni.Layout.Proximity
- , Graphics.Gudni.Layout.Style
- , Graphics.Gudni.Layout.Token
- , Graphics.Gudni.Layout.WithBox
- , Graphics.Gudni.Raster.Serial.Reference
- , Graphics.Gudni.Raster.Serial.Slice
- , Graphics.Gudni.Raster.Serial.Pile
- , Graphics.Gudni.Raster.Serial.BytePile
- , Graphics.Gudni.Raster.Serial.CopyPile
- , Graphics.Gudni.Raster.Thresholds.OpenCL.CallKernels
- , Graphics.Gudni.Raster.Thresholds.OpenCL.EmbeddedOpenCLSource
- , Graphics.Gudni.Raster.Thresholds.OpenCL.PrepareBuffers
- , Graphics.Gudni.Raster.Thresholds.OpenCL.ProcessBuffers
- , Graphics.Gudni.Raster.Thresholds.OpenCL.Rasterizer
- , Graphics.Gudni.Raster.Thresholds.OpenCL.Instance
- , Graphics.Gudni.Raster.Thresholds.OpenCL.Setup
- , Graphics.Gudni.Raster.Thresholds.Constants
- , Graphics.Gudni.Raster.Thresholds.Enclosure
- , Graphics.Gudni.Raster.Thresholds.ItemInfo
- , Graphics.Gudni.Raster.Thresholds.Params
- , Graphics.Gudni.Raster.Thresholds.ReorderTable
- , Graphics.Gudni.Raster.Thresholds.Serialize
- , Graphics.Gudni.Raster.Thresholds.Strand
- , Graphics.Gudni.Raster.Thresholds.StrandReference
- , Graphics.Gudni.Raster.Thresholds.SubstanceInfo
- , Graphics.Gudni.Raster.Thresholds.TileTree
- , Graphics.Gudni.Raster.OpenCL.Buffer
- , Graphics.Gudni.Raster.OpenCL.CppDefines
- , Graphics.Gudni.Raster.OpenCL.DeviceQuery
- , Graphics.Gudni.Raster.OpenCL.Instances
- , Graphics.Gudni.Raster.OpenCL.KernelQuery
- , Graphics.Gudni.ShapeTree.STree
- , Graphics.Gudni.ShapeTree.FinalTree
- , Graphics.Gudni.ShapeTree.Traverse
- -- LANGUAGE extensions used by modules in this package.
- other-extensions: FlexibleContexts
- , TypeFamilies
- , ScopedTypeVariables
- , MultiParamTypeClasses
- , UndecidableInstances
- , DatatypeContexts
- , TemplateHaskell
- , GeneralizedNewtypeDeriving
- , StandaloneDeriving
- , GADTs
- , LambdaCase
- , FlexibleInstances
- , AllowAmbiguousTypes
- , PatternSynonyms
- , KindSignatures
- , ConstraintKinds
- , Rank2Types
- , TypeOperators
- , RankNTypes
- , CPP
- , DeriveDataTypeable
- , ViewPatterns
- , ExistentialQuantification
- build-tools: c2hs
- , happy
- -- Other library packages from which modules are imported.
- build-depends: base
- , hashable
- , vector
- , MonadRandom
- , random
- , half
- , containers
- , mtl
- , array
- , bytestring
- , primitive
- , transformers
- , time
- , clock
- , intervals
- , linear
- , loop
- , lens
- , monad-memo
- , mmorph
- , parallel
- , parallel-io
- , directory
- , filepath
- , file-embed
- , sdl2 >= 2.5
- -- text only needed for window names
- , text
- , OpenGL
- , OpenGLRaw
- , OpenCL
- , CLUtil
- , diagrams-lib
- , FontyFruity
- , JuicyPixels
- , colour
- , monadlist
- , IfElse
- , filtrable
- , numeric-limits
- , GenericPretty
- , pretty
- , STMonadTrans
- , monad-loops
- -- Directories containing source files.
- hs-source-dirs: src
- ghc-options: -fprint-potential-instances
- -- ld-options: -headerpad_max_install_names
- -- Base language which the package is written in.
- default-language: Haskell2010
- executable gudni-benchmarks
- other-modules: GudniTests
- if flag(benchmarks)
- build-depends: gudni
- , base
- , lens
- , vector
- , mtl
- , GenericPretty
- , MonadRandom >=0.5 && <0.6
- , random >=1.1 && <1.2
- , JuicyPixels
- , silently
- , IfElse
- else
- buildable: False
- hs-source-dirs: ./tests
- main-is: GudniBenchmarks.hs
- default-language: Haskell2010
- ghc-options: -main-is GudniBenchmarks
- -O3
- -threaded
- -- "-with-rtsopts=-N -p -s -h -i0.1"
- executable square-example
- if flag(benchmarks)
- build-depends: gudni
- , base
- , lens
- , mtl
- else
- buildable: False
- hs-source-dirs: ./examples
- main-is: Square.hs
- default-language: Haskell2010
- ghc-options: -main-is Square
- -O3
- -threaded
- -- "-with-rtsopts=-N -p -s -h -i0.1"
- executable projection-example
- if flag(benchmarks)
- build-depends: gudni
- , base
- , lens
- , linear
- , mtl
- , vector
- else
- buildable: False
- hs-source-dirs: ./examples
- main-is: ProjectDemo.hs
- default-language: Haskell2010
- ghc-options: -main-is ProjectDemo
- -O3
- -threaded
- -fprint-potential-instances
- executable facet-tesselation
- if flag(benchmarks)
- build-depends: gudni
- , base
- , lens
- , linear
- , mtl
- , vector
- else
- buildable: False
- hs-source-dirs: ./tests
- main-is: FacetTesselation.hs
- default-language: Haskell2010
- ghc-options: -main-is FacetTesselation
- -O3
- -threaded
- -fprint-potential-instances
- executable debug-projection
- if flag(benchmarks)
- build-depends: gudni
- , base
- , lens
- , linear
- , mtl
- else
- buildable: False
- hs-source-dirs: ./examples
- main-is: DebugProjection.hs
- default-language: Haskell2010
- ghc-options: -main-is DebugProjection
- -O3
- -threaded
- -fprint-potential-instances
- executable stroke-example
- if flag(benchmarks)
- build-depends: gudni
- , base
- , lens
- , linear
- , mtl
- else
- buildable: False
- hs-source-dirs: ./examples
- main-is: StrokeDemo.hs
- default-language: Haskell2010
- ghc-options: -main-is StrokeDemo
- -O3
- -threaded
- -fprint-potential-instances
- executable plot-example
- -- other-modules:
- if flag(benchmarks)
- build-depends: gudni
- , base
- , lens
- , vector
- , mtl
- else
- buildable: False
- hs-source-dirs: ./examples
- main-is: Plot.hs
- default-language: Haskell2010
- ghc-options: -main-is Plot
- -O3
- -threaded
- -- "-with-rtsopts=-N -p -s -h -i0.1"
- executable paragraph-example
- -- other-modules:
- if flag(benchmarks)
- build-depends: gudni
- , base
- , lens
- , vector
- , mtl
- else
- buildable: False
- hs-source-dirs: ./examples
- main-is: Paragraph.hs
- default-language: Haskell2010
- ghc-options: -main-is Paragraph
- -O3
- -threaded
- -- "-with-rtsopts=-N -p -s -h -i0.1"
- executable confinetree
- other-modules: GudniTests
- BasicShapes
- if flag(benchmarks)
- build-depends: gudni
- , base
- , lens
- , vector
- , containers
- , mtl
- , IfElse
- , GenericPretty
- , MonadRandom >=0.5 && <0.6
- , random >=1.1 && <1.2
- , colour
- else
- buildable: False
- hs-source-dirs: ./tests
- main-is: ConfineTreeTest.hs
- default-language: Haskell2010
- ghc-options: -main-is ConfineTreeTest
- -O3
- -threaded
- -- "-with-rtsopts=-N -p -s -h -i0.1"
- executable crosstest
- -- other-modules:
- if flag(benchmarks)
- build-depends: gudni
- , base
- , lens
- , vector
- , containers
- , mtl
- , IfElse
- , GenericPretty
- , MonadRandom >=0.5 && <0.6
- , random >=1.1 && <1.2
- else
- buildable: False
- hs-source-dirs: ./tests
- main-is: CrossesBezierTest.hs
- default-language: Haskell2010
- ghc-options: -main-is CrossesBezierTest
- -O3
- -threaded
- -- "-with-rtsopts=-N -p -s -h -i0.1"
- benchmark criterion
- hs-source-dirs: tests
- main-is: CriterionBenchmarks.hs
- ghc-options: -O2 -Wall -rtsopts
- build-depends: gudni
- , base
- , criterion
- , linear
- default-language: Haskell2010
- type: exitcode-stdio-1.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement