Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readme haskell examples out of date #494

Open
aavogt opened this issue Nov 9, 2024 · 0 comments
Open

readme haskell examples out of date #494

aavogt opened this issue Nov 9, 2024 · 0 comments

Comments

@aavogt
Copy link

aavogt commented Nov 9, 2024

The readme has:

-- 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:

import Graphics.Implicit

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

main = writeSVG 2 "test.svg" out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant