add new examples in cabal

This commit is contained in:
nek0 2017-12-28 16:57:11 +01:00
parent 8a5370c857
commit a1974fb2f3

View file

@ -116,8 +116,8 @@ library
-- This example shows the message system. only makes sense when compiling with -- This example shows the message system. only makes sense when compiling with
-- verbose flag. -- verbose flag.
executable example00 executable example00
hs-source-dirs: examples hs-source-dirs: examples/example00
main-is: example00.hs main-is: Main.hs
ghc-options: -threaded -Wall ghc-options: -threaded -Wall
default-language: Haskell2010 default-language: Haskell2010
default-extensions: OverloadedStrings default-extensions: OverloadedStrings
@ -129,114 +129,24 @@ executable example00
else else
buildable: False buildable: False
-- executable example01 -- A small game of life implementation
-- hs-source-dirs: examples executable example01
-- main-is: example01.hs hs-source-dirs: examples/example01
-- ghc-options: -threaded -Wall main-is: Main.hs
-- default-language: Haskell2010 other-modules: Types
-- default-extensions: OverloadedStrings ghc-options: -threaded -Wall
-- if flag(examples) default-language: Haskell2010
-- build-depends: base default-extensions: OverloadedStrings
-- , affection if flag(examples)
-- , sdl2 build-depends: base >=4.9 && < 5
-- , gegl , affection
-- , babl , sdl2
-- , containers , stm
-- , mtl , OpenGL
-- else , random
-- buildable: False , containers
-- , linear
-- executable example02 , matrix
-- hs-source-dirs: examples , nanovg
-- main-is: example02.hs else
-- ghc-options: -threaded -Wall buildable: False
-- default-language: Haskell2010
-- default-extensions: OverloadedStrings
-- if flag(examples)
-- build-depends: base
-- , affection
-- , sdl2
-- , gegl
-- , babl
-- , containers
-- , mtl
-- , monad-parallel
-- else
-- buildable: False
--
-- executable example02.1
-- hs-source-dirs: examples
-- main-is: example02.1.hs
-- ghc-options: -threaded -Wall
-- default-language: Haskell2010
-- default-extensions: OverloadedStrings
-- if flag(examples)
-- build-depends: base
-- , affection
-- , sdl2
-- , gegl
-- , babl
-- , containers
-- , mtl
-- else
-- buildable: False
--
-- executable example03
-- hs-source-dirs: examples
-- main-is: example03.hs
-- ghc-options: -threaded -Wall -auto-all -caf-all -rtsopts
-- default-language: Haskell2010
-- default-extensions: OverloadedStrings
-- if flag(examples)
-- build-depends: base
-- , affection
-- , sdl2
-- , gegl
-- , babl
-- , containers
-- , mtl
-- , random
-- else
-- buildable: False
--
-- executable example04
-- hs-source-dirs: examples
-- main-is: example04.hs
-- ghc-options: -threaded -Wall -auto-all -caf-all -rtsopts
-- default-language: Haskell2010
-- default-extensions: OverloadedStrings
-- if flag(examples)
-- build-depends: base
-- , affection
-- , sdl2
-- , gegl
-- , babl
-- , containers
-- , mtl
-- , random
-- , monad-parallel
-- else
-- buildable: False
--
-- executable example05
-- hs-source-dirs: examples
-- main-is: example05.hs
-- ghc-options: -threaded -Wall -auto-all -caf-all -rtsopts
-- default-language: Haskell2010
-- default-extensions: OverloadedStrings
-- if flag(examples)
-- build-depends: base
-- , affection
-- , sdl2
-- , gegl
-- , babl
-- , containers
-- , unordered-containers
-- , mtl
-- , random
-- , matrix
-- , random
-- , monad-parallel
-- , parallel
-- else
-- buildable: False