Copyright | (c) OleksandrZhabenko 2020 |
---|---|
License | MIT |
Maintainer | olexandr543@yahoo.com |
Stability | Experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Extensions | BangPatterns |
Functions to encode and decode String
-> \['Int8'\] used in the Simple/Main.hs code.
Is taken from the phonetic-languages-simplified-lists-examples
package.
Synopsis
- encodeToInt :: [String] -> Int
- indexedL :: Foldable t => b -> t b -> [(Int8, b)]
- trans2 :: [[a]] -> [(Int8, [a])]
- trans232 :: [[a]] -> [(Int, [a])]
- int2l :: Int -> [Int8]
- decodeToStr :: [Int8] -> String -> String
- toHeap :: [String] -> Heap Int
- fromHeap :: String -> Heap Int -> [String]
- intersectInterResults :: [String] -> [String] -> [String]
- newLineEnding :: String
Documentation
encodeToInt :: [String] -> Int Source #
indexedL :: Foldable t => b -> t b -> [(Int8, b)] Source #
Is taken mostly from the Phonetic.Languages.Simplified.Lists.UniquenessPeriodsG module from the phonetic-languages-simplified-common
package.
decodeToStr :: [Int8] -> String -> String Source #
So: > decodeToStr (int2l . encodeToInt . words $ xs) xs == unwords . words $ xs
toHeap :: [String] -> Heap Int Source #
Every String
consists of words with whitespace symbols in between.
newLineEnding :: String Source #
Auxiliary printing function to define the line ending in some cases. Is taken from the
Languages.UniquenessPeriods.Vector.General.DebugG module from the phonetic-languages-general
package