packages feed

phonetic-languages-phonetics-basics 0.10.0.0 → 0.10.0.1

raw patch · 3 files changed

+9/−4 lines, 3 files

Files

ChangeLog.md view
@@ -128,3 +128,7 @@  * Tenth version. Switched to NoImplicitPrelude extension. Updated the metadata and dependencies boundaries. +## 0.10.0.1 -- 2023-02-18++* Tenth version revised A. Fixed issue with integer conversions that caused build to fail.+
Phladiprelio/General/Syllables.hs view
@@ -71,6 +71,7 @@ import Data.Char (isLetter) import GHC.Num ((-)) import Data.Tuple (fst, snd)+import GHC.Enum (fromEnum)  -- Inspired by: https://github.com/OleksandrZhabenko/mm1/releases/tag/0.2.0.0 @@ -98,7 +99,7 @@   show (P x) = "P " `mappend` show x  fromPhoneticType :: PhoneticType -> Int-fromPhoneticType (P (I8# x)) =  I# x+fromPhoneticType (P x) =  fromEnum x  -- | The 'Array' 'Int' must be sorted in the ascending order to be used in the module correctly. type CharPhoneticClassification = Array Int PRS@@ -249,12 +250,12 @@   toDLR :: b -> [a] -> ([a] -> [a], [a] -> [a])  instance DListRepresentation PRS Int8 where-  toDLR (I8# left) xs+  toDLR left xs     | null xs = (id,id)     | null ts =  (id,(zs `mappend`))     | null zs = ((`mappend` ts), id)     | otherwise = ((`mappend` ts), (zs `mappend`))-        where (ts,zs) = splitAt (I# left) xs+        where (ts,zs) = splitAt (fromEnum left) xs             data SegmentationLineFunction = LFS {   infoSP :: SegmentationInfo1,
phonetic-languages-phonetics-basics.cabal view
@@ -3,7 +3,7 @@ -- http://haskell.org/cabal/users-guide/  name:                phonetic-languages-phonetics-basics-version:             0.10.0.0+version:             0.10.0.1 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