This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Sudoku where | |
type Row a = [a] | |
type Matrix a = [Row a] | |
type Digit = Char | |
type Grid = Matrix Digit | |
-- sample3 is unsolvable | |
sample1, sample2, sample3 :: Grid | |
sample1 = ["2....1.38" |