Create GOL.Space

This commit is contained in:
Kiana Sheibani 2021-12-20 14:24:16 -05:00
parent 96cccfe750
commit d3046d4b97
2 changed files with 15 additions and 4 deletions

9
GOL/Space.hs Normal file
View file

@ -0,0 +1,9 @@
module GOL.Space where
import Data.Functor.Rep
class (Representable f, Rep f ~ s) => Space s f where
neighbors :: s -> [s]
class (Space (Int, Int) f) => DisplayableSpace f where
size :: (Int, Int)