phonetic-languages-simplified-properties-array-common 0.2.0.0 → 0.3.0.0
raw patch · 3 files changed
+8/−28 lines, 3 filesdep ~phonetic-languages-basisPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: phonetic-languages-basis
API changes (from Hackage documentation)
- Phonetic.Languages.Array.Ukrainian.Common: CF0 :: CoeffTwo a
- Phonetic.Languages.Array.Ukrainian.Common: CF2 :: Maybe a -> Maybe a -> CoeffTwo a
- Phonetic.Languages.Array.Ukrainian.Common: data CoeffTwo a
- Phonetic.Languages.Array.Ukrainian.Common: fstCF :: CoeffTwo a -> Maybe a
- Phonetic.Languages.Array.Ukrainian.Common: instance GHC.Classes.Eq a => GHC.Classes.Eq (Phonetic.Languages.Array.Ukrainian.Common.CoeffTwo a)
- Phonetic.Languages.Array.Ukrainian.Common: isEmpty :: CoeffTwo a -> Bool
- Phonetic.Languages.Array.Ukrainian.Common: isPair :: CoeffTwo a -> Bool
- Phonetic.Languages.Array.Ukrainian.Common: readCF :: String -> Coeffs2
- Phonetic.Languages.Array.Ukrainian.Common: sndCF :: CoeffTwo a -> Maybe a
- Phonetic.Languages.Array.Ukrainian.Common: type Coeffs2 = CoeffTwo Double
Files
- CHANGELOG.md +5/−0
- Phonetic/Languages/Array/Ukrainian/Common.hs +1/−26
- phonetic-languages-simplified-properties-array-common.cabal +2/−2
CHANGELOG.md view
@@ -10,3 +10,8 @@ * The second version. Updated the dependencies so that now the Ukrainian syllable segmentation is treated more properly. Changed the structure of the non-sound Ukraninian symbols representation (now they are converted to one of the [100,101,102]). +## 0.3.0.0 -- 2022-09-13++* The third version. Moved the coeffs functionality to the phonetic-languages-basis package. +Updated the dependencies to use the new uniquenessPeriods functionality.+
Phonetic/Languages/Array/Ukrainian/Common.hs view
@@ -28,6 +28,7 @@ import Data.Maybe (fromMaybe,isNothing) import Rhythmicity.PolyRhythm import Text.Read (readMaybe)+import Phonetic.Languages.Coeffs #ifdef __GLASGOW_HASKELL__ #if __GLASGOW_HASKELL__==708@@ -59,32 +60,6 @@ eval23CoeffsF k (CF2 x y) = evalRhythmicity23KF k (fromMaybe 1.0 x) (fromMaybe 1.0 y) eval23CoeffsF k CF0 = evalRhythmicity23F k {-# INLINE eval23CoeffsF #-}--data CoeffTwo a = CF0 | CF2 (Maybe a) (Maybe a) deriving (Eq)--isEmpty :: CoeffTwo a -> Bool-isEmpty CF0 = True-isEmpty _ = False--isPair :: CoeffTwo a -> Bool-isPair CF0 = False-isPair _ = True--fstCF :: CoeffTwo a -> Maybe a-fstCF (CF2 x _) = x-fstCF _ = Nothing--sndCF :: CoeffTwo a -> Maybe a-sndCF (CF2 _ y) = y-sndCF _ = Nothing--readCF :: String -> Coeffs2-readCF xs- | any (== '_') xs = let (!ys,!zs) = (\(ks,ts) -> (readMaybe ks::Maybe Double,readMaybe (drop 1 ts)::Maybe Double)) . break (== '_') $ xs in- if (isNothing ys && isNothing zs) then CF0 else CF2 ys zs- | otherwise = CF0--type Coeffs2 = CoeffTwo Double --------------------------------------------------------------------------------------------
phonetic-languages-simplified-properties-array-common.cabal view
@@ -1,5 +1,5 @@ name: phonetic-languages-simplified-properties-array-common-version: 0.2.0.0+version: 0.3.0.0 synopsis: Common functionality for 'with-tuples' and old version of properties. description: The common functionality for phonetic-languages-simplified-properties-array and phonetic-languages-simplified-properties-array-old packages. homepage: https://hackage.haskell.org/package/phonetic-languages-simplified-properties-array-common@@ -17,6 +17,6 @@ exposed-modules: Phonetic.Languages.Array.Ukrainian.Common -- other-modules: other-extensions: BangPatterns, CPP- build-depends: base >=4.8 && <5, phonetic-languages-rhythmicity ==0.9.2.0, phonetic-languages-basis ==0.1.1.0+ build-depends: base >=4.8 && <5, phonetic-languages-rhythmicity ==0.9.2.0, phonetic-languages-basis ==0.2.0.0 -- hs-source-dirs: default-language: Haskell2010