Haskell-Things / Haskell-Things/ImplicitCAD

readme haskell examples out of date

Open
#494 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.6k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

The readme has:
```haskell
-- Example 11 - the union of a square and a circle.
import Graphics.Implicit

out = union [
squareR 0 True (80, 80)
, translate (40, 40) (circle 30)
]

main = writeSVG 2 "test.svg" out
```
squareR is gone and tuples were replaced with V2 or V3 from the linear package:
```haskell
import Graphics.Implicit

out =
union
[ square True (V2 80 80),
translate (V2 40 40) (circle 30)
]

main = writeSVG 2 "test.svg" out
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.