Skip to content

Commit

Permalink
Merge pull request #11 from TomSmeets/master
Browse files Browse the repository at this point in the history
Added test-suite and examples to the cabal file
  • Loading branch information
jbarrow committed Mar 25, 2016
2 parents fd6c677 + c7f1d8f commit fbdb2b9
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions LambdaNet.cabal
Expand Up @@ -22,6 +22,10 @@ cabal-version: >=1.8
extra-source-files: README.md
Changelog

flag examples
Description: Enable examples
Default: False

library
exposed-modules:
AI.Network,
Expand All @@ -44,3 +48,52 @@ library
bytestring,
Histogram,
hspec

executable convolutional
main-is: Convolutional.hs
hs-source-dirs: examples
build-depends:
base >= 4 && < 5,
LambdaNet,
hmatrix >= 0.17.0.1,
random
if flag(examples)
buildable: True
else
buildable: False

executable som
main-is: SOM.hs
hs-source-dirs: examples
build-depends:
base >= 4 && < 5,
LambdaNet,
hmatrix >= 0.17.0.1,
random
if flag(examples)
buildable: True
else
buildable: False

executable xor
main-is: XOR.hs
hs-source-dirs: examples
build-depends:
base >= 4 && < 5,
LambdaNet,
hmatrix >= 0.17.0.1,
random
if flag(examples)
buildable: True
else
buildable: False

test-suite test-all
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs: test
build-depends:
base >= 4 && < 5,
LambdaNet,
hspec,
QuickCheck

0 comments on commit fbdb2b9

Please sign in to comment.