packages feed

snowball-1.0.0.1: snowball.cabal

name          : snowball
version       : 1.0.0.1
homepage      : http://hub.darcs.net/dag/snowball
bug-reports   : http://hub.darcs.net/dag/snowball/issues
category      : Natural Language Processing, Text
maintainer    : dag.odenhall@gmail.com
copyright     : (c) 2012 Dag Odenhall, (c) 2008 Tupil, (c) 2002 Richard Boulton
synopsis      : Bindings to the Snowball library.
description   : The Snowball library is used to compute the stems of words
                in natural languages.
                .
                Compared to the older <stemmer> package, this one:
                .
                * Correctly handles unicode without relying on the system
                  locale
                .
                * Takes greater care to avoid memory leaks and to be thread
                  safe
                .
                * Uses Text rather than String
                .
                * Gets rid of the need for @stemWords@ by using rewrite
                  rules to make @map stem@ efficient
                .
                * Includes a more recent release of Snowball
                .
                * Attempts to comply with the Snowball licensing terms
                .
                * Supports @SafeHaskell@ when available and is otherwise
                  @Haskell2010@
                .
                * Comes with a test suite
                .
                However, although this code is written from scratch, it is
                heavily modeled after the code of the \"stemmer\" package.
license       : BSD3
license-file  : LICENSE
cabal-version : >= 1.10
build-type    : Simple

extra-source-files : libstemmer_c/src_c/stem_ISO_8859_1_danish.h
                     libstemmer_c/src_c/stem_ISO_8859_1_dutch.h
                     libstemmer_c/src_c/stem_ISO_8859_1_english.h
                     libstemmer_c/src_c/stem_ISO_8859_1_finnish.h
                     libstemmer_c/src_c/stem_ISO_8859_1_french.h
                     libstemmer_c/src_c/stem_ISO_8859_1_german.h
                     libstemmer_c/src_c/stem_ISO_8859_1_hungarian.h
                     libstemmer_c/src_c/stem_ISO_8859_1_italian.h
                     libstemmer_c/src_c/stem_ISO_8859_1_norwegian.h
                     libstemmer_c/src_c/stem_ISO_8859_1_porter.h
                     libstemmer_c/src_c/stem_ISO_8859_1_portuguese.h
                     libstemmer_c/src_c/stem_ISO_8859_2_romanian.h
                     libstemmer_c/src_c/stem_KOI8_R_russian.h
                     libstemmer_c/src_c/stem_ISO_8859_1_spanish.h
                     libstemmer_c/src_c/stem_ISO_8859_1_swedish.h
                     libstemmer_c/src_c/stem_UTF_8_danish.h
                     libstemmer_c/src_c/stem_UTF_8_dutch.h
                     libstemmer_c/src_c/stem_UTF_8_english.h
                     libstemmer_c/src_c/stem_UTF_8_finnish.h
                     libstemmer_c/src_c/stem_UTF_8_french.h
                     libstemmer_c/src_c/stem_UTF_8_german.h
                     libstemmer_c/src_c/stem_UTF_8_hungarian.h
                     libstemmer_c/src_c/stem_UTF_8_italian.h
                     libstemmer_c/src_c/stem_UTF_8_norwegian.h
                     libstemmer_c/src_c/stem_UTF_8_porter.h
                     libstemmer_c/src_c/stem_UTF_8_portuguese.h
                     libstemmer_c/src_c/stem_UTF_8_romanian.h
                     libstemmer_c/src_c/stem_UTF_8_russian.h
                     libstemmer_c/src_c/stem_UTF_8_spanish.h
                     libstemmer_c/src_c/stem_UTF_8_swedish.h
                     libstemmer_c/src_c/stem_UTF_8_turkish.h
                     libstemmer_c/include/libstemmer.h
                     libstemmer_c/libstemmer/modules.h
                     libstemmer_c/runtime/api.h
                     libstemmer_c/runtime/header.h
                     libstemmer_c/LICENSE

source-repository head
  type     : darcs
  location : http://hub.darcs.net/dag/snowball

library
  hs-source-dirs   : src
  default-language : Haskell2010
  ghc-options      : -Wall
  c-sources        : libstemmer_c/src_c/stem_ISO_8859_1_danish.c
                     libstemmer_c/src_c/stem_ISO_8859_1_dutch.c
                     libstemmer_c/src_c/stem_ISO_8859_1_english.c
                     libstemmer_c/src_c/stem_ISO_8859_1_finnish.c
                     libstemmer_c/src_c/stem_ISO_8859_1_french.c
                     libstemmer_c/src_c/stem_ISO_8859_1_german.c
                     libstemmer_c/src_c/stem_ISO_8859_1_hungarian.c
                     libstemmer_c/src_c/stem_ISO_8859_1_italian.c
                     libstemmer_c/src_c/stem_ISO_8859_1_norwegian.c
                     libstemmer_c/src_c/stem_ISO_8859_1_porter.c
                     libstemmer_c/src_c/stem_ISO_8859_1_portuguese.c
                     libstemmer_c/src_c/stem_ISO_8859_2_romanian.c
                     libstemmer_c/src_c/stem_KOI8_R_russian.c
                     libstemmer_c/src_c/stem_ISO_8859_1_spanish.c
                     libstemmer_c/src_c/stem_ISO_8859_1_swedish.c
                     libstemmer_c/src_c/stem_UTF_8_danish.c
                     libstemmer_c/src_c/stem_UTF_8_dutch.c
                     libstemmer_c/src_c/stem_UTF_8_english.c
                     libstemmer_c/src_c/stem_UTF_8_finnish.c
                     libstemmer_c/src_c/stem_UTF_8_french.c
                     libstemmer_c/src_c/stem_UTF_8_german.c
                     libstemmer_c/src_c/stem_UTF_8_hungarian.c
                     libstemmer_c/src_c/stem_UTF_8_italian.c
                     libstemmer_c/src_c/stem_UTF_8_norwegian.c
                     libstemmer_c/src_c/stem_UTF_8_porter.c
                     libstemmer_c/src_c/stem_UTF_8_portuguese.c
                     libstemmer_c/src_c/stem_UTF_8_romanian.c
                     libstemmer_c/src_c/stem_UTF_8_russian.c
                     libstemmer_c/src_c/stem_UTF_8_spanish.c
                     libstemmer_c/src_c/stem_UTF_8_swedish.c
                     libstemmer_c/src_c/stem_UTF_8_turkish.c
                     libstemmer_c/runtime/api.c
                     libstemmer_c/runtime/utilities.c
                     libstemmer_c/libstemmer/libstemmer.c
  exposed-modules  : NLP.Snowball
  build-depends    : base == 4.*,
                     bytestring,
                     text,
                     text-icu
  if impl(ghc >= 7.2)
    default-extensions : Trustworthy

benchmark bench-snowball
  type             : exitcode-stdio-1.0
  main-is          : Main.hs
  hs-source-dirs   : bench
  default-language : Haskell2010
  ghc-options      : -Wall
  build-depends    : base == 4.*,
                     criterion,
                     language-haskell-extract,
                     snowball,
                     text

test-suite test-snowball
  type             : exitcode-stdio-1.0
  main-is          : Main.hs
  hs-source-dirs   : test
  default-language : Haskell2010
  ghc-options      : -Wall -fno-warn-orphans
                     -threaded -rtsopts -with-rtsopts=-N
  build-depends    : base == 4.*,
                     HUnit,
                     QuickCheck,
                     quickcheck-instances,
                     snowball,
                     test-framework-hunit,
                     test-framework-quickcheck2,
                     test-framework-th,
                     text