puzzle-draw-0.2.0.0: Creating graphics for pencil puzzles.
Text.Puzzles.Puzzle
Synopsis
data TypedPuzzle Source #
Constructors
Instances
Methods
showsPrec :: Int -> TypedPuzzle -> ShowS #
show :: TypedPuzzle -> String #
showList :: [TypedPuzzle] -> ShowS #
parseJSON :: Value -> Parser TypedPuzzle #
parseJSONList :: Value -> Parser [TypedPuzzle] #
type ParsePuzzle a b = (Value -> Parser a, Value -> Parser b) Source #
A pair of parsers for a puzzle type. First parses the puzzle, second the solution.
parseType :: String -> Parser PuzzleType Source #