Skip to content

Commit 0283934

Browse files
committed
Added a Cabal file for the helper programs.
1 parent cf34aa4 commit 0283934

File tree

6 files changed

+28
-13
lines changed

6 files changed

+28
-13
lines changed

AllNonAsciiChars.hs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
-- | This module extracts all the non-ASCII characters used by the
22
-- library code (along with how many times they are used).
3-
--
4-
-- The implementation relies on the FileManip library which is
5-
-- available from Hackage.
63

7-
module AllNonAsciiChars where
4+
module Main where
85

96
import qualified Data.List as L
107
import Data.Char

GNUmakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ test: Everything.agda
55

66
.PHONY: Everything.agda
77
Everything.agda:
8-
runhaskell GenerateEverything.hs
8+
cabal install
9+
GenerateEverything

GenerateEverything.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{-# LANGUAGE PatternGuards #-}
22

3-
-- This program requires that the filepath and FileManip packages from
4-
-- Hackage are installed.
5-
63
import qualified Data.List as List
74
import Control.Applicative
85
import System.Environment

README.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ For information about the library, see README.agda.
77
The README module imports the Everything module. This module is
88
generated automatically; if you have downloaded the library from its
99
darcs repository and want to type check README you can construct
10-
Everything by running "runhaskell GenerateEverything.hs". Note that
11-
the GenerateEverything program depends on the filepath and FileManip
12-
packages from Hackage.
10+
Everything by running "cabal install && GenerateEverything".
1311

1412
Note that all library sources are located under src. The modules
15-
README and Everything are not really part of the library, so these
16-
modules are located in the top-level directory instead.
13+
README, README.* and Everything are not really part of the library, so
14+
these modules are located in the top-level directory instead.

Setup.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import Distribution.Simple
2+
3+
main = defaultMain

lib.cabal

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: lib
2+
version: 0.0
3+
cabal-version: >= 1.8
4+
build-type: Simple
5+
description: Helper programs.
6+
tested-with: GHC == 6.12.1
7+
8+
executable GenerateEverything
9+
hs-source-dirs: .
10+
main-is: GenerateEverything.hs
11+
build-depends: base == 4.2.*,
12+
FileManip == 0.3.*,
13+
filepath == 1.1.*
14+
15+
executable AllNonAsciiChars
16+
hs-source-dirs: .
17+
main-is: AllNonAsciiChars.hs
18+
build-depends: base == 4.2.*,
19+
FileManip == 0.3.*

0 commit comments

Comments
 (0)