Skip to content

Commit

Permalink
Added a Cabal file for the helper programs.
Browse files Browse the repository at this point in the history
  • Loading branch information
nad committed Mar 25, 2010
1 parent cf34aa4 commit 0283934
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 13 deletions.
5 changes: 1 addition & 4 deletions AllNonAsciiChars.hs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
-- | This module extracts all the non-ASCII characters used by the
-- library code (along with how many times they are used).
--
-- The implementation relies on the FileManip library which is
-- available from Hackage.

module AllNonAsciiChars where
module Main where

import qualified Data.List as L
import Data.Char
Expand Down
3 changes: 2 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ test: Everything.agda

.PHONY: Everything.agda
Everything.agda:
runhaskell GenerateEverything.hs
cabal install
GenerateEverything
3 changes: 0 additions & 3 deletions GenerateEverything.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{-# LANGUAGE PatternGuards #-}

-- This program requires that the filepath and FileManip packages from
-- Hackage are installed.

import qualified Data.List as List
import Control.Applicative
import System.Environment
Expand Down
8 changes: 3 additions & 5 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ For information about the library, see README.agda.
The README module imports the Everything module. This module is
generated automatically; if you have downloaded the library from its
darcs repository and want to type check README you can construct
Everything by running "runhaskell GenerateEverything.hs". Note that
the GenerateEverything program depends on the filepath and FileManip
packages from Hackage.
Everything by running "cabal install && GenerateEverything".

Note that all library sources are located under src. The modules
README and Everything are not really part of the library, so these
modules are located in the top-level directory instead.
README, README.* and Everything are not really part of the library, so
these modules are located in the top-level directory instead.
3 changes: 3 additions & 0 deletions Setup.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Distribution.Simple

main = defaultMain
19 changes: 19 additions & 0 deletions lib.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: lib
version: 0.0
cabal-version: >= 1.8
build-type: Simple
description: Helper programs.
tested-with: GHC == 6.12.1

executable GenerateEverything
hs-source-dirs: .
main-is: GenerateEverything.hs
build-depends: base == 4.2.*,
FileManip == 0.3.*,
filepath == 1.1.*

executable AllNonAsciiChars
hs-source-dirs: .
main-is: AllNonAsciiChars.hs
build-depends: base == 4.2.*,
FileManip == 0.3.*

0 comments on commit 0283934

Please sign in to comment.