Add library specification to cabal file

This commit is contained in:
Kiana Sheibani 2021-12-29 21:07:01 -05:00
parent 1bcf95d280
commit c39357a93b
2 changed files with 17 additions and 2 deletions

View file

@ -10,4 +10,9 @@ 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 :: IO ()
main = playYampa (InWindow "a" (200, 200) (10, 10)) black 30 (run space) main =
playYampa
(InWindow "Conway's Game of Life" (200, 200) (10, 10))
black
30
(run space)

View file

@ -6,6 +6,16 @@ license: MIT
build-type: Simple build-type: Simple
cabal-version: >= 1.8 cabal-version: >= 1.8
library
build-depends: base,
vector,
comonad,
distributive,
adjunctions
exposed-modules: GOL.Rule,
GOL.Space,
GOL.Engine
executable gol executable gol
main-is: Main.hs main-is: Main.hs
other-modules: GOL.Rule, other-modules: GOL.Rule,