KMP-0.1: KMP.cabal
-- KMP.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: KMP
-- 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: Knuth–Morris–Pratt string searching algorithm
-- A longer description of the package.
Description:
This module implements the Knuth-Morris-Pratt algorithm.
It can search a word in a text in O(m+n) time, where m and n are the length of the word and the text.
This module can apply on any list of instance of Eq.
-- URL for the project homepage or repository.
Homepage: https://github.com/CindyLinz/Haskell-KMP
-- The license under which the package is released.
License: BSD3
-- The file containing the license text.
License-file: LICENSE
-- The package author(s).
Author: Cindy Wang (CindyLinz)
-- An email address to which users can send suggestions, bug reports,
-- and patches.
Maintainer: Cindy Wang <cindylinz@gmail.com>
-- A copyright notice.
Copyright: 2012, Cindy Wang (CindyLinz)
Category: Algorithms
Stability: alpha
Build-type: Simple
Tested-with: GHC == 7.0.4
-- Extra files to be distributed with the package, such as examples or
-- a README.
Extra-source-files:
README,
testsuite/tests/Data/Algorithms/KMP/Main.hs
-- Constraint on the version of Cabal needed to build this package.
Cabal-version: >= 1.9.2
Library
hs-source-dirs: src
-- Modules exported by the library.
Exposed-modules: Data.Algorithms.KMP
-- Packages needed in order to build this package.
Build-depends: base >= 3.0 && < 5,
array >= 0.3 && < 1
-- Modules not exported by this package.
-- Other-modules:
-- Extra tools (e.g. alex, hsc2hs, ...) needed to build the source.
-- Build-tools:
Test-Suite test
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs: testsuite/tests/Data/Algorithms/KMP
build-depends: base >= 3.0 && < 5,
Cabal >= 1.9.2,
KMP