Data.TTN.Client
ttnClient :: TChan Event -> IO () Source #
Try to load config from default locations and start actual client
ttnClientConf :: Conf -> TChan Event -> IO () Source #
Start client with custom Conf config
Conf
withTTN :: (Event -> IO a) -> IO b Source #
data Conf Source #
Constructors
Fields
Defined in Data.TTN.Client
Methods
(==) :: Conf -> Conf -> Bool #
(/=) :: Conf -> Conf -> Bool #
showsPrec :: Int -> Conf -> ShowS #
show :: Conf -> String #
showList :: [Conf] -> ShowS #
envConfCfg :: IO Conf Source #
Try loading config from location in TTNCFG environment variable or from ~.ttnconfig
TTNCFG
~.ttnconfig
parseConfCfg :: FilePath -> IO (Either String Conf) Source #
Try parsing config from given FilePath
FilePath