From c39357a93be51d16e47e15e63b240fe31fc2f496 Mon Sep 17 00:00:00 2001 From: kiana-S Date: Wed, 29 Dec 2021 21:07:01 -0500 Subject: [PATCH] Add library specification to cabal file --- Main.hs | 9 +++++++-- conways-game-of-life.cabal | 10 ++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Main.hs b/Main.hs index e2edeed..b13cd4c 100644 --- a/Main.hs +++ b/Main.hs @@ -7,7 +7,12 @@ import Graphics.Gloss import Graphics.GlossUtils (playYampa) space :: ToroidalSpace Bool -space = tabulate (\(x,y) -> (x + y `mod` 5) * 10 + x - y > 30) +space = tabulate (\(x, y) -> (x + y `mod` 5) * 10 + x - y > 30) main :: IO () -main = playYampa (InWindow "a" (200, 200) (10, 10)) black 30 (run space) \ No newline at end of file +main = + playYampa + (InWindow "Conway's Game of Life" (200, 200) (10, 10)) + black + 30 + (run space) \ No newline at end of file diff --git a/conways-game-of-life.cabal b/conways-game-of-life.cabal index d15a9fb..3cc53a9 100644 --- a/conways-game-of-life.cabal +++ b/conways-game-of-life.cabal @@ -6,6 +6,16 @@ license: MIT build-type: Simple cabal-version: >= 1.8 +library + build-depends: base, + vector, + comonad, + distributive, + adjunctions + exposed-modules: GOL.Rule, + GOL.Space, + GOL.Engine + executable gol main-is: Main.hs other-modules: GOL.Rule,