Safe Haskell | None |
---|---|
Language | Haskell98 |
- type PuzzleSol b = (Diagram b R2, Maybe (Diagram b R2))
- type RenderPuzzle b p s = (p -> Diagram b R2, (p, s) -> Diagram b R2)
- data OutputChoice
- draw :: (Backend b R2, Renderable (Path R2) b) => PuzzleSol b -> OutputChoice -> Maybe (Diagram b R2)
- data Unit
- diagramWidth :: Diagram b R2 -> Double
- toOutputWidth :: Unit -> Double -> Double
Documentation
draw :: (Backend b R2, Renderable (Path R2) 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.
diagramWidth :: Diagram b R2 -> Double Source
toOutputWidth :: Unit -> Double -> Double Source