Copyright | (c) OleksandrZhabenko 2021-2022 |
---|---|
License | MIT |
Maintainer | olexandr543@yahoo.com |
Stability | Experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Extensions |
|
A library that has commonly used function for the phonetic-languages implementations.
Synopsis
- convStringInterpreter :: String -> String -> String
- convStringInterpreterIO :: String -> String -> IO String
- corr :: Int -> String -> IO Int
- correctionF :: Monad m => Int -> String -> Int -> [String] -> m String
- readFileIfAny :: FilePath -> IO String
- argsConvertTextual :: String -> [String] -> [String]
- fullArgsConvertTextual :: (String -> Bool) -> String -> String -> [String] -> [String]
- fullArgsConvertTextualSimple :: (String -> Bool) -> String -> [String] -> [String]
Documentation
convStringInterpreter :: String -> String -> String Source #
Converts the second given string into the form that can be easily used by the phonetic-languages-simplified-* implementations.
convStringInterpreterIO :: String -> String -> IO String Source #
Variant of the convStringInterpreter
with the additional possibility to correct splitting after revision.
readFileIfAny :: FilePath -> IO String Source #
Inspired by: 'https://hackage.haskell.org/package/base-4.15.0.0/docs/src/GHC-IO.html#catch'
Reads a textual file given by its FilePath
and returns its contents lazily. If there is
some IOException
thrown or an empty file then returns just "". Raises an exception for the binary file.