WordNet 0.1.1 → 0.1.2
raw patch · 2 files changed
+35/−12 lines, 2 filesdep +arraydep +containersdep +filepathdep ~base
Dependencies added: array, containers, filepath
Dependency ranges changed: base
Files
- NLP/WordNet/Consts.hs +3/−4
- WordNet.cabal +32/−8
NLP/WordNet/Consts.hs view
@@ -1,30 +1,29 @@ module NLP.WordNet.Consts where import Data.List (intersperse)+import System.FilePath (joinPath) +makePath = joinPath+ #if defined (UNIX) dictDir = "/dict" defaultPath = "/usr/local/WordNet-2.0/dict" defaultBin = "/usr/local/WordNet-2.0/bin" -makePath = concat . intersperse "/" #elif defined (PC) dictDir = "\\dict" defaultPath = "c:\\WordNet 2.0\\dict" defaultBin = "c:\\WordNet 2.0\\bin" -makePath = concat . intersperse "\\" #elif defined (MAC) dictDir = ":Database" defaultPath = ":Database" defaultBin = ":" -makePath = concat . intersperse ":" #else -- guess unix style dictDir = "/dict" defaultPath = "/usr/local/WordNet-2.0/dict" defaultBin = "/usr/local/WordNet-2.0/bin" -makePath = concat . intersperse "/" #endif
WordNet.cabal view
@@ -1,14 +1,38 @@ Name: WordNet-Version: 0.1.1-Description: A pure-Haskell interface to the WordNet lexical database of English. Depends on the WordNet database, but not on the WordNet source code.-Category: natural-language processing, text+Version: 0.1.2+Description:+ A pure-Haskell interface to the WordNet lexical database of English.+ Depends on the WordNet database, but not on the WordNet source code.+Category: natural language processing, text Synopsis: Haskell interface to the WordNet database License: BSD3 License-file: LICENSE-Author: Hal Daume III <me@hal3.name>+Author: Hal Daume III Maintainer: Max Rabkin <max.rabkin@gmail.com>-Build-Depends: base-Exposed-Modules: NLP.WordNet-Other-Modules: NLP.WordNet.Common, NLP.WordNet.PrimTypes, NLP.WordNet.Util, NLP.WordNet.Consts, NLP.WordNet.Prims, NLP.WordNet.Types+Build-Depends: base, filepath Build-Type: Simple-GHC-Options: -cpp -fglasgow-exts+Cabal-Version: >= 1.2++Flag small_base+ Description: Choose the new smaller, split-up base package.++Library+ if flag(small_base)+ Build-Depends: base >= 3, containers, filepath, array+ else+ Build-Depends: base < 3, filepath+ + Exposed-Modules:+ NLP.WordNet++ Other-Modules:+ NLP.WordNet.Common+ NLP.WordNet.PrimTypes+ NLP.WordNet.Util+ NLP.WordNet.Consts+ NLP.WordNet.Prims+ NLP.WordNet.Types++ GHC-Options: -fglasgow-exts++ Extensions: CPP