hodatime-1.0.0.0: platform/linux/Data/HodaTime/Locale/Platform.hs
-- | Linux implementation of the locale reader. Linux exposes the POSIX per-locale query API, so this simply delegates
-- to the shared "Data.HodaTime.Locale.Posix" shim.
module Data.HodaTime.Locale.Platform
(
loadCurrentLocale
,loadLocaleByName
)
where
import Data.HodaTime.Locale.Internal (Locale)
import qualified Data.HodaTime.Locale.Posix as P
loadCurrentLocale :: IO Locale
loadCurrentLocale = P.loadCurrentLocale
loadLocaleByName :: String -> IO (Maybe Locale)
loadLocaleByName = P.loadLocaleByName