phonetic-languages-phonetics-basics 0.6.2.0 → 0.6.3.0
raw patch · 3 files changed
+9/−7 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Data.Phonetic.Languages.Syllables: instance GHC.Read.Read Data.Phonetic.Languages.Syllables.SegmentationInfo1
+ Data.Phonetic.Languages.Syllables: instance GHC.Read.Read Data.Phonetic.Languages.Syllables.SegmentationLineFunction
+ Data.Phonetic.Languages.Syllables: instance GHC.Read.Read Data.Phonetic.Languages.Syllables.SegmentationRules1
+ Data.Phonetic.Languages.Syllables: instance GHC.Show.Show Data.Phonetic.Languages.Syllables.SegmentationLineFunction
+ Data.Phonetic.Languages.Syllables: instance GHC.Show.Show Data.Phonetic.Languages.Syllables.SegmentationRules1
Files
- ChangeLog.md +5/−0
- Data/Phonetic/Languages/Syllables.hs +3/−6
- phonetic-languages-phonetics-basics.cabal +1/−1
ChangeLog.md view
@@ -77,3 +77,8 @@ * Sixth version revised C. Some documentation improvements. Fixed issues with being not compiled because of 2 doc-style comments (thanks to: Jonathan Ringer at notifications@github.com). ++## 0.6.3.0 -- 2021-05-19++* Sixth version revised D. Added Read and added / changed Show instances to the data types in the SegmentRulesG data type in the+Data.Phonetic.Languages.Syllables module.
Data/Phonetic/Languages/Syllables.hs view
@@ -184,10 +184,7 @@ data SegmentationInfo1 = SI { fieldN :: !Int8, -- ^ Number of fields in the pattern matching that are needed to apply the segmentation rules. Not less than 1. predicateN :: Int8 -- ^ Number of predicates in the definition for the 'fieldN' that are needed to apply the segmentation rules.-} deriving (Eq)--instance Show SegmentationInfo1 where- show (SI m n) = L.intercalate " " ["SI", show m, show n]+} deriving (Eq, Read, Show) instance PhoneticElement SegmentationInfo1 where readPEMaybe rs@@ -254,13 +251,13 @@ infoSP :: SegmentationInfo1, predF :: SegmentationFDP, -- ^ The predicate to check the needed rule for segmentation. resF :: Int8 -- ^ The result argument to be appended to the left of the group of consonants if the 'predF' returns 'True' for its arguments. Is an argument to the 'toDLR'.-}+} deriving (Read, Show) data SegmentationRules1 = SR1 { infoS :: SegmentationInfo1, lineFs :: [SegmentationLineFunction] -- ^ The list must be sorted in the appropriate order of the guards usage for the predicates. -- The length of the list must be equal to the ('fromEnum' . 'predicateN' . 'infoS') value.-} +} deriving (Read, Show) -- | List of the 'SegmentationRules1' sorted in the descending order by the 'fieldN' 'SegmentationInfo1' data and where the -- length of all the 'SegmentationPredFunction' lists of 'PRS' are equal to the 'fieldN' 'SegmentationInfo1' data by definition.
phonetic-languages-phonetics-basics.cabal view
@@ -3,7 +3,7 @@ -- http://haskell.org/cabal/users-guide/ name: phonetic-languages-phonetics-basics-version: 0.6.2.0+version: 0.6.3.0 synopsis: A library for working with generalized phonetic languages usage. description: There already exists a Ukrainian implementation for the phonetic languages approach published at: https://hackage.haskell.org/package/phonetic-languages-simplified-examples-array. It is optimized for the Ukrainian only and needs to be rewritten for every new language mostly from scratch using it as a template. To avoid this boilerplate, this one is provided. It can be used for different languages and even for music or other fields. Now it combines the functionality of the @r-glpk-phonetic-languages-ukrainian-durations@ and @phonetic-languages-ukrainian-array@ and some dependencies of the mentioned one. homepage: https://hackage.haskell.org/package/phonetic-languages-phonetics-basics