Safe Haskell | None |
---|
The module provides functions for working with the binary representation of the historical dictionary of Polish. The dictionary is stored on a disk but we assume that it doesn't change throughtout the program session so that we can provide the pure interface for dictionary reading and searching.
Documentation
loadPolh :: FilePath -> Maybe PolhSource
Load dictionary from a disk in a lazy manner. Return Nothing
if the path doesn't correspond to a binary representation of the
dictionary.
A PolhM monad is a wrapper over the Polish historical dictionary in a binary form.
runPolh :: FilePath -> PolhM a -> Maybe aSource
Execute the Polh monad against the binary Polh representation located in the given directory. Return Nothing if the directory doesnt' exist or if it doesn't look like a Polh dictionary. We assume that the binary representation doesn't change so we can provide the pure interface.