-- Initial pronounce.cabal generated by cabal init. For further -- documentation, see http://haskell.org/cabal/users-guide/ -- The name of the package. name: pronounce -- The package version. See the Haskell package versioning policy (PVP) -- for standards guiding when and how versions should be incremented. -- https://wiki.haskell.org/Package_versioning_policy -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change version: 1.1.0.2 -- A short (one-line) description of the package. synopsis: A library for interfacing with the CMU Pronouncing Dictionary -- A longer description of the package. description: Text.Pronounce is a Haskell library for interfacing and CMU Pronouncing Dictionary. It is based off of Allison Parrish's python library called 'pronouncing', and it exports much of the same functionality. The underlying data structure that I used for representing the dictionary was a @Map@ from entries to lists of their possible phones as represented in the CMU dict. Many functions rely on access to the CMU dict, so I decided to encompass this underlying state of the dictionary by using the Reader Monad. . When working with this library, the default setting is to load the dictionary from an included binary file, but the user has the option to parse the dictionary from a unicode text file, or encode the text file into binary themselves. For this last purpose, I included the script I originally used to encode the dictionary into a binary in the @examples@ folder. . Finally, I would like to note that @Text.Pronounce.ParseDict@ operates on utf8 encoded files, due to compatibility with @Text@, which is utf encoded, despite the fact the original CMU Pronouncing Dictionary uses latin1 encoding. Because of this, if the user wants to use a version of the CMU Dictionary other than the included one, they must change to encoding to utf before parsing. -- URL for the project homepage or repository. homepage: https://github.com/buonuomo/Text.Pronounce -- The license under which the package is released. license: BSD3 -- The file containing the license text. license-file: LICENSE -- The package author(s). author: Noah Goodman -- An email address to which users can send suggestions, bug reports, and -- patches. maintainer: ngoodman@uchicago.edu -- A copyright notice. -- copyright: category: Text build-type: Simple -- Extra files to be distributed with the package, such as examples or a -- README. extra-source-files: ChangeLog.md README.md examples/*.hs data-files: cmuutf, cmubin -- Constraint on the version of Cabal needed to build this package. cabal-version: >=1.10 source-repository head type: git location: https://github.com/buonuomo/Text.Pronounce.git library -- Modules exported by the library. exposed-modules: Text.Pronounce, Text.Pronounce.ParseDict -- Modules included in this library but not exported. other-modules: Paths_pronounce -- LANGUAGE extensions used by modules in this package. other-extensions: OverloadedStrings -- Other library packages from which modules are imported. build-depends: base >=4.10 && <4.11, mtl >=2.2 && <2.3, text >=1.2 && <1.3, containers >=0.5 && <0.6, filepath >=1.4 && <1.5, binary >=0.8.4 -- Directories containing source files. -- hs-source-dirs: -- Base language which the package is written in. default-language: Haskell2010