-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update from Hackage at 2018-04-08T00:14:40Z
- Loading branch information
1 parent
458b9eb
commit fac6246
Showing
2 changed files
with
175 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
Name: blank-canvas | ||
Version: 0.6.3 | ||
Synopsis: HTML5 Canvas Graphics Library | ||
|
||
Description: @blank-canvas@ is a Haskell binding to the complete | ||
<https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API HTML5 Canvas API>. | ||
@blank-canvas@ allows Haskell users to write, in Haskell, | ||
interactive images onto their web browsers. @blank-canvas@ | ||
gives the user a single full-window canvas, and provides | ||
many well-documented functions for rendering | ||
images. | ||
. | ||
@ | ||
{-# LANGUAGE OverloadedStrings #-} | ||
module Main where | ||
import Graphics.Blank -- import the blank canvas | ||
. | ||
main = blankCanvas 3000 $ \\ context -> do -- start blank canvas on port 3000 | ||
  send context $ do -- send commands to this specific context | ||
    moveTo(50,50) | ||
    lineTo(200,100) | ||
    lineWidth 10 | ||
    strokeStyle \"red\" | ||
    stroke() -- this draws the ink into the canvas | ||
@ | ||
. | ||
<<https://github.com/ku-fpg/blank-canvas/wiki/images/Red_Line.png>> | ||
. | ||
For more details, read the <https://github.com/ku-fpg/blank-canvas/wiki blank-canvas wiki>. | ||
. | ||
License: BSD3 | ||
License-file: LICENSE | ||
Author: Andy Gill and Ryan Scott | ||
Maintainer: andygill@ku.edu | ||
Copyright: Copyright (c) 2014 The University of Kansas | ||
Homepage: https://github.com/ku-fpg/blank-canvas/wiki | ||
Bug-reports: https://github.com/ku-fpg/blank-canvas/issues | ||
Category: Graphics | ||
Build-type: Simple | ||
Stability: Beta | ||
Extra-source-files: README.md | ||
Changelog.md | ||
Cabal-version: >= 1.10 | ||
tested-with: GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.1 | ||
data-files: | ||
static/index.html | ||
static/jquery.js | ||
static/jquery-json.js | ||
|
||
|
||
Library | ||
Exposed-modules: Graphics.Blank | ||
Graphics.Blank.Cursor | ||
Graphics.Blank.Font | ||
Graphics.Blank.GHCi | ||
Graphics.Blank.Style | ||
other-modules: Graphics.Blank.Canvas | ||
Graphics.Blank.DeviceContext | ||
Graphics.Blank.Events | ||
Graphics.Blank.Generated | ||
Graphics.Blank.JavaScript | ||
Graphics.Blank.Parser | ||
Graphics.Blank.Types | ||
Graphics.Blank.Types.CSS | ||
Graphics.Blank.Types.Cursor | ||
Graphics.Blank.Types.Font | ||
Graphics.Blank.Utils | ||
Paths_blank_canvas | ||
|
||
default-language: Haskell2010 | ||
build-depends: aeson >= 0.7 && < 1.4, | ||
base64-bytestring == 1.0.*, | ||
base >= 4.7 && < 4.12, | ||
base-compat-batteries >= 0.10 && < 0.11, | ||
bytestring == 0.10.*, | ||
colour >= 2.2 && < 3.0, | ||
containers == 0.5.*, | ||
data-default-class >= 0.0.1 && < 0.2, | ||
http-types >= 0.8 && < 0.13, | ||
mime-types >= 0.1.0.3 && < 0.2, | ||
kansas-comet >= 0.4 && < 0.5, | ||
scotty >= 0.10 && < 0.12, | ||
semigroups >= 0.18 && < 1, | ||
stm >= 2.2 && < 2.5, | ||
text >= 1.1 && < 1.3, | ||
text-show >= 2 && < 4, | ||
transformers >= 0.3 && < 0.6, | ||
wai == 3.*, | ||
wai-extra >= 3.0.1 && < 3.1, | ||
warp == 3.*, | ||
vector >= 0.10 && < 0.13 | ||
|
||
GHC-options: -Wall | ||
GHC-prof-options: -Wall -fsimpl-tick-factor=100000 | ||
|
||
|
||
test-suite wiki-suite | ||
build-depends: base >= 4.7 && < 4.12, | ||
base-compat-batteries >= 0.10 && < 0.11, | ||
blank-canvas, | ||
containers == 0.5.*, | ||
process >= 1.2 && < 1.7, | ||
directory >= 1.2, | ||
shake >= 0.13, | ||
stm >= 2.2 && < 2.5, | ||
text >= 1.1 && < 1.3, | ||
time >= 1.4 && < 1.9, | ||
unix == 2.7.*, | ||
vector >= 0.10 && < 0.13 | ||
|
||
default-language: Haskell2010 | ||
GHC-options: -threaded -Wall | ||
main-is: Main.hs | ||
hs-source-dirs: wiki-suite | ||
type: exitcode-stdio-1.0 | ||
other-modules: Arc | ||
Bezier_Curve | ||
Bounce | ||
Circle | ||
Clipping_Region | ||
Color_Fill | ||
Color_Square | ||
Custom_Shape | ||
Custom_Transform | ||
Draw_Canvas | ||
Draw_Device | ||
Draw_Image | ||
Favicon | ||
Font_Size_and_Style | ||
Get_Image_Data_URL | ||
Global_Alpha | ||
Global_Composite_Operations | ||
Grayscale | ||
Image_Crop | ||
Image_Loader | ||
Image_Size | ||
Is_Point_In_Path | ||
Key_Read | ||
Line | ||
Line_Cap | ||
Line_Color | ||
Line_Join | ||
Line_Width | ||
Linear_Gradient | ||
Load_Image_Data_URL | ||
Load_Image_Data_URL_2 | ||
Miter_Limit | ||
Path | ||
Pattern | ||
Quadratic_Curve | ||
Radial_Gradient | ||
Rectangle | ||
Red_Line | ||
Rotate_Transform | ||
Rotating_Square | ||
Rounded_Corners | ||
Scale_Transform | ||
Semicircle | ||
Shadow | ||
Square | ||
Text_Align | ||
Text_Baseline | ||
Text_Color | ||
Text_Metrics | ||
Text_Stroke | ||
Text_Wrap | ||
Tic_Tac_Toe | ||
Translate_Transform | ||
Wiki | ||
|
||
|
||
source-repository head | ||
type: git | ||
location: https://github.com/ku-fpg/blank-canvas.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"package-hashes":{"MD5":"580add72dd966220eec480b362115019","Skein512_512":"7b2fecff4df90a7fbb7f3ba12dfef8999b7762be442dc6cba8237e2a06dcd66d5a9143e1a24e89292b57aeff5dad2b11a23cebe5bb22393cc6165d0c68546d8a","SHA1":"232bb3c3be65051424b68251c395606dfe896326","SHA512":"b5f728c14ca0917e9aff1c64140fc39f1e5468166a9b3bf9616336c9c02ad40354ff96bf81d4f68bc7393e65325c21d8f6836670d48a8f5a720b718964563781","SHA256":"739d24ff7035fd675e95c2d33bd9d3cb7d1ef0cca94c16bbf950c4a7f7b320b4"},"package-locations":["https://hackage.haskell.org/package/blank-canvas-0.6.3/blank-canvas-0.6.3.tar.gz","https://s3.amazonaws.com/hackage.fpcomplete.com/package/blank-canvas-0.6.3.tar.gz"],"package-size":92282} |