uniqueness-periods-vector-properties 0.3.1.0 → 0.4.0.0
raw patch · 3 files changed
+52/−5 lines, 3 filesdep +mmsyn7sdep +phonetic-languages-rhythmicityPVP ok
version bump matches the API change (PVP)
Dependencies added: mmsyn7s, phonetic-languages-rhythmicity
API changes (from Hackage documentation)
+ Languages.UniquenessPeriods.Vector.PropertiesSyllables: rhythmicity0 :: String -> Float
+ Languages.UniquenessPeriods.Vector.PropertiesSyllables: rhythmicityK :: Float -> Float -> String -> Float
Files
- ChangeLog.md +6/−1
- Languages/UniquenessPeriods/Vector/PropertiesSyllables.hs +42/−0
- uniqueness-periods-vector-properties.cabal +4/−4
ChangeLog.md view
@@ -14,7 +14,7 @@ ## 0.2.0.0 -- 2020-09-07 -* Second version. Added new functions diverse1, diverse1s, diverse2 to the module. Changed the dependency boundaries for uniqueness-periods-vector. Some minor +* Second version. Added new functions diverse1, diverse1s, diverse2 to the module. Changed the dependency boundaries for uniqueness-periods-vector. Some minor documentation improvements. ## 0.3.0.0 -- 2020-09-09@@ -24,3 +24,8 @@ ## 0.3.1.0 -- 2020-09-09 * Third version revised. Changed the dependency bounds of uniqueness-periods-vector package.++## 0.4.0.0 -- 2020-10-08++* Fourth version. Added a new module Languages.UniquenessPeriods.Vector.PropertiesSyllables with Ukrainian syllables related metrices. Added new+dependencies of mmsyn7s and phonetic-languages-rhythmicity.
+ Languages/UniquenessPeriods/Vector/PropertiesSyllables.hs view
@@ -0,0 +1,42 @@+-- |+-- Module : Languages.UniquenessPeriods.Vector.PropertiesSyllables+-- Copyright : (c) OleksandrZhabenko 2020+-- License : MIT+-- Stability : Experimental+-- Maintainer : olexandr543@yahoo.com+--+-- Generalization of the functionality of the DobutokO.Poetry.Norms+-- and DobutokO.Poetry.Norms.Extended modules+-- from the @dobutokO-poetry@ package. Uses syllables information.++{-# LANGUAGE CPP, BangPatterns #-}++module Languages.UniquenessPeriods.Vector.PropertiesSyllables where++#ifdef __GLASGOW_HASKELL__+#if __GLASGOW_HASKELL__>=710+/* code that applies only to GHC 7.10.* and higher versions */+import GHC.Base (mconcat)+#endif+#endif+import qualified Data.Vector as V+import String.Languages.UniquenessPeriods.Vector+import Languages.Rhythmicity+import MMSyn7.Syllable++#ifdef __GLASGOW_HASKELL__+#if __GLASGOW_HASKELL__==708+/* code that applies only to GHC 7.8.* */+mconcat = concat+#endif+#endif++rhythmicity0 :: String -> Float+rhythmicity0 xs+ | null xs = 0.0+ | otherwise = evalRhythmicity23 . mconcat . syllableDurations . syllablesUkrP $ xs++rhythmicityK :: Float -> Float -> String -> Float+rhythmicityK k2 k3 xs+ | null xs = 0.0+ | otherwise = evalRhythmicity23K k2 k3 . mconcat . syllableDurations . syllablesUkrP $ xs
uniqueness-periods-vector-properties.cabal view
@@ -3,7 +3,7 @@ -- http://haskell.org/cabal/users-guide/ name: uniqueness-periods-vector-properties-version: 0.3.1.0+version: 0.4.0.0 synopsis: Metrices for the maximum element for the uniqueness-periods-vector packages family. description: Metrices for the maximum element for the uniqueness-periods-vector packages family. Generalization of the DobutokO.Poetry.Norms and DobutokO.Poetry.Norms.Extended modules from dobutokO-poetry package. homepage: https://hackage.haskell.org/package/uniqueness-periods-vector-properties@@ -18,9 +18,9 @@ cabal-version: >=1.10 library- exposed-modules: Languages.UniquenessPeriods.Vector.Properties+ exposed-modules: Languages.UniquenessPeriods.Vector.Properties, Languages.UniquenessPeriods.Vector.PropertiesSyllables -- other-modules:- -- other-extensions:- build-depends: base >=4.7 && <4.15, vector >=0.11 && <0.14, uniqueness-periods-vector >=0.3 && <1+ other-extensions: CPP, BangPatterns+ build-depends: base >=4.7 && <4.15, vector >=0.11 && <0.14, uniqueness-periods-vector >=0.3 && <1, mmsyn7s >=0.9 && <1, phonetic-languages-rhythmicity >=0.1.0.1 && <1 -- hs-source-dirs: default-language: Haskell2010