-
Notifications
You must be signed in to change notification settings - Fork 1
/
processing.cabal
127 lines (125 loc) · 4.24 KB
/
processing.cabal
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
Name: processing
Version: 1.2.0.2
Author: Daniel Díaz
Category: Graphics
Build-type: Simple
License: BSD3
License-file: license
Maintainer: Daniel Díaz (dhelta.diaz `at` gmail.com)
Bug-reports: https://github.com/Daniel-Diaz/processing/issues
Synopsis: Web graphic applications with processing.js.
Stability: In development
Description:
/Processing/ is a visual design programming language.
/Processing.js/ is the sister project of Processing designed
for the web.
The Haskell /processing/ package is a web animation library
with /Processing.js/ as backend.
.
/What is this for?/
.
With this library you are able to write scripts that, once
executed in a browser, will execute interactive visual programs.
.
/Where can I see a running example?/
.
Running examples are provided in the /examples/ directory.
These are some of the outputs:
.
* Mill demo. Preview: <http://daniel-diaz.github.io/projects/processing/mill.html>.
Code: <https://github.com/Daniel-Diaz/processing/blob/master/examples/mill.hs>.
.
* Pacman demo. Preview: <http://daniel-diaz.github.io/projects/processing/pacman.html>.
Code: <https://github.com/Daniel-Diaz/processing/blob/master/examples/pacman.hs>.
.
The code of the latter is included in the source distribution.
.
/How do I learn to use it?/
.
The API reference of the library includes guidance and is complemented with
code examples. Look also to the /examples/ directory included in the source
distribution. It contains some fully working examples. Also online at:
.
<https://github.com/Daniel-Diaz/processing/tree/master/examples>
.
The library provides different APIs (interfaces). Each one with a different
philosophy.
.
* /Simple/ ("Graphics.Web.Processing.Simple"): An abstract interface, focusing
in what you want to be displayed, but not how. The library will know how to
write the processing code you need. However, you may lack some features that
you can find in other interfaces.
.
* /Mid/ ("Graphics.Web.Processing.Mid"): More imperative feeling, with variables
and commands. But also convenient and complete. This is the default interface,
re-exported by "Graphics.Web.Processing".
.
* /Basic/ ("Graphics.Web.Processing.Basic"): For people that like to do things
by hand. The output processing code is predictable and you have great
control over it.
.
The module "Graphics.Web.Processing.Html" helps you to create the HTML document
where you will display the animation.
Cabal-version: >= 1.6
Extra-source-files:
readme.md
examples/twist.hs
examples/mill.hs
examples/keys.hs
examples/random.hs
examples/pacman.hs
examples/pacman.map
examples/sierpinski.hs
Source-repository head
type: git
location: [email protected]:Daniel-Diaz/processing.git
Library
Build-depends:
base == 4.*
, text >= 0.11.2.3 && < 2
, containers >= 0.5 && < 0.6
, transformers >= 0.3 && < 0.6
, mainland-pretty >= 0.2 && < 0.5
, blaze-html >= 0.5.1
, multiset >= 0.2.2 && < 0.3
, directory >= 1.2 && < 1.3
, filepath >= 1.1.0.0 && < 1.5
-- QuickCheck
, QuickCheck
, quickcheck-instances
-- Template Haskell
, template-haskell
-- Compatibility with previous GHC versions.
if impl(ghc < 7.6)
Build-depends: ghc-prim
Exposed-modules:
-- Core modules
Graphics.Web.Processing.Core.Types
Graphics.Web.Processing.Core.Interface
Graphics.Web.Processing.Core.Var
-- Basic interface
Graphics.Web.Processing.Basic
-- Mid interface
Graphics.Web.Processing.Mid
Graphics.Web.Processing.Mid.CustomVar
-- Simple interface
Graphics.Web.Processing.Simple
-- Default interface
Graphics.Web.Processing
-- Optimizations
Graphics.Web.Processing.Optimize
-- HTML
Graphics.Web.Processing.Html
Other-modules:
Graphics.Web.Processing.Core.TH
Graphics.Web.Processing.Core.Primal
Graphics.Web.Processing.Core.Monad
Extensions: OverloadedStrings
, EmptyDataDecls
-- , DeriveGeneric (used, but not recognized)
, MultiParamTypeClasses
, FunctionalDependencies
, TypeOperators
-- , DefaultSignatures (used, but not recognized)
, FlexibleContexts
GHC-Options: -Wall