puzzle-draw-0.1.0.4: Creating graphics for pencil puzzles.

Safe HaskellNone
LanguageHaskell98

Diagrams.Puzzles.Draw

Synopsis

Documentation

type RenderPuzzle b p s = (p -> Diagram b R2, (p, s) -> Diagram b R2) Source

draw :: Backend' b => PuzzleSol b -> OutputChoice -> Maybe (Diagram b R2) Source

Optionally render the puzzle, its solution, or a side-by-side example with puzzle and solution.

data Unit Source

Constructors

Pixels 
Points