Created
February 9, 2011 09:31
-
-
Save kowey/818202 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- cabal-dev-huh.cabal auto-generated by cabal init. For additional | |
| -- options, see | |
| -- http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html#pkg-descr. | |
| -- The name of the package. | |
| Name: cabal-dev-huh | |
| -- The package version. See the Haskell package versioning policy | |
| -- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for | |
| -- standards guiding when and how versions should be incremented. | |
| Version: 0.1 | |
| -- A short (one-line) description of the package. | |
| -- Synopsis: | |
| -- A longer description of the package. | |
| -- Description: | |
| -- The license under which the package is released. | |
| License: BSD3 | |
| -- The file containing the license text. | |
| License-file: LICENSE | |
| -- The package author(s). | |
| Author: Eric Kow | |
| -- An email address to which users can send suggestions, bug reports, | |
| -- and patches. | |
| Maintainer: E.Y.Kow@brighton.ac.uk | |
| -- A copyright notice. | |
| -- Copyright: | |
| Category: Foo | |
| Build-type: Simple | |
| -- Extra files to be distributed with the package, such as examples or | |
| -- a README. | |
| -- Extra-source-files: | |
| -- Constraint on the version of Cabal needed to build this package. | |
| Cabal-version: >=1.2 | |
| Executable x1 | |
| Build-depends: base | |
| Main-is: x1.hs | |
| Executable x2 | |
| Build-depends: base | |
| Main-is: x2.hs | |
| Executable x3 | |
| Build-depends: base | |
| Main-is: x3.hs | |
| Executable x4 | |
| Build-depends: base | |
| Main-is: x4.hs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| cabal-dev clean | |
| cabal-dev install -v2 2>&1 > log | |
| c=$(grep -c "Installing executable " log) | |
| good=4 | |
| if [ $c -eq $good ]; then | |
| echo >&2 "PASS: $c == $good" | |
| exit 0 | |
| else | |
| echo >&2 "FAIL: $c (expecting $good)" | |
| exit 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- same for x{2,3,4}.hs | |
| main = putStrLn "hello" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- same for x{2,3,4}.hs | |
| main = putStrLn "hello" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- same for x{2,3,4}.hs | |
| main = putStrLn "hello" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- same for x{2,3,4}.hs | |
| main = putStrLn "hello" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment