sound-change-0.1.0.0: sound-change.cabal
cabal-version: 2.4
name: sound-change
version: 0.1.0.0
author: Owen Bechtel
maintainer: ombspring@gmail.com
category: Language, Linguistics
synopsis: Apply sound changes to words
description:
Example usage:
.
@
{-# LANGUAGE QuasiQuotes #-}
import Language.Change (Change, applyChanges)
import Language.Change.Quote
.
setV = "aeiou"
.
changes :: [Change Char]
changes = [chs|
  * { k > tʃ; g > dʒ } / _i
  * i > e / _i
  u > o / _u
  * { p > b; t > d } / V_{Vlr}
  * a > e / _V!*i
  |]
.
results = map (applyChanges changes) [ "kiis", "kapir", "atri" ]
\-- [ "tʃeis", "kebir", "edri" ]
@
.
See the module documentation for more information.
homepage: https://github.com/UnaryPlus/sound-change
bug-reports: https://github.com/UnaryPlus/sound-change/issues
license: MIT
license-file: LICENSE
extra-source-files: CHANGELOG.md, README.md
source-repository head
type: git
location: https://github.com/UnaryPlus/sound-change.git
library
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall
exposed-modules:
Language.Change,
Language.Change.Quote
build-depends:
base >= 4.9.0.0 && < 5,
containers >= 0.2.0.0 && < 0.8,
syb >= 0.1.0.0 && < 0.8,
template-haskell >= 2.5.0.0 && < 2.22,
megaparsec >= 9.0.0 && < 10,
parser-combinators >= 0.4.0 && < 2,
mtl >= 1.0 && < 2.4
test-suite test
type: exitcode-stdio-1.0
hs-source-dirs: test
default-language: Haskell2010
ghc-options: -Wall
main-is: Spec.hs
other-modules: Language.ChangeSpec
build-depends:
base, hspec, containers, sound-change
build-tool-depends:
hspec-discover:hspec-discover