Add library specification to cabal file
This commit is contained in:
parent
1bcf95d280
commit
c39357a93b
9
Main.hs
9
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)
|
||||
main =
|
||||
playYampa
|
||||
(InWindow "Conway's Game of Life" (200, 200) (10, 10))
|
||||
black
|
||||
30
|
||||
(run space)
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue