string-interpreter 0.5.2.0 → 0.5.3.0
raw patch · 3 files changed
+7/−2 lines, 3 files
Files
- ChangeLog.md +5/−0
- Interpreter/StringConversion.hs +1/−1
- string-interpreter.cabal +1/−1
ChangeLog.md view
@@ -29,3 +29,8 @@ ## 0.5.2.0 -- 2021-09-04 * Fifth version revised B. Added a new function that is simpler in usage and is sufficient.++## 0.5.3.0 -- 2021-10-01++* Fifth version revised C. Fixed issue with the negative second number in the +conversion function.
Interpreter/StringConversion.hs view
@@ -25,7 +25,7 @@ | null contrs = xs | null . words $ xs = xs | case filter (\y -> isDigit y || y == '/' || y == '-') contrs of { a:'/':bs -> a /= '/' && a /= '0' ; ~rrr -> False } =- let ys = filter (\y -> isDigit y || y == '/') contrs in+ let ys = filter (\y -> isDigit y || y == '/' || y == '-') contrs in case ys of ~a:'/':bs -> let wordsN = words xs wordN = min (fromMaybe 1 (readMaybe [a]::Maybe Int)) (length wordsN)
string-interpreter.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: string-interpreter-version: 0.5.2.0+version: 0.5.3.0 synopsis: Is used in the phonetic languages approach (e. g. in the recursive mode). description: A library that has commonly used functions for the phonetic-languages implementations that deals with String data. homepage: https://hackage.haskell.org/package/string-interpreter