Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/CiaranCostello/shapeServer

A haskell scotty server using blaze-html and blaze-svg. Displays shapes defined by the user in a DSL using the blazingly fast svg combinator library.
https://github.com/CiaranCostello/shapeServer

Last synced: 11 days ago
JSON representation

A haskell scotty server using blaze-html and blaze-svg. Displays shapes defined by the user in a DSL using the blazingly fast svg combinator library.

Awesome Lists containing this project

README

        

# Shape Server
> A haskell scotty server using blaze-html and blaze-svg. Displays shapes defined by the user in a DSL using the blazingly fast svg combinator library.
## Shape Server example
```
stack build
stack ghci
main
Setting phasers to stun... (port 3000) (ctrl-c to quit)
```
## DSL example
```
[(Scale 2.5 0.5 :+: Translate 1 2, Circle, (Style 1 Red Blue)), (Scale 2 1 :+: (Translate 1 0 :+: Rotate 5), Square, (Style 1 Blue Red))]
```