module Controller.SaveConfig (configFilePath,eventHandler) where import Control.Monad.Trans (liftIO) import Controller (Controller,currentConfig) import Config (save) import Constants (configFilePath) eventHandler :: Controller () eventHandler = do config <- currentConfig liftIO $ configFilePath >>= save `flip` config