This file contains 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
{-# LANGUAGE GADTs, FlexibleInstances #-} | |
module Main where | |
import Control.Monad | |
import Control.Monad.RWS.Strict | |
import Control.Monad.Trans.Error | |
import Prelude hiding (putChar, getChar) | |
import qualified System.IO as IO |
This file contains 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
abstract sig Digit {} | |
one sig One, Two, Three, Four, Five, Six, Seven, Eight, Nine extends Digit {} | |
sig Cell { | |
content: Digit, | |
adjacent : set Cell | |
} | |
abstract sig Group { | |
cells: set Cell |