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

Safe HaskellNone
LanguageHaskell98

Diagrams.Puzzles.Draw

Synopsis

Documentation

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

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

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

data Unit Source #

Constructors

Pixels 
Points