Skip to content

Instantly share code, notes, and snippets.

@JakubOboza
Created October 5, 2014 23:13
Show Gist options
  • Save JakubOboza/9487cfe49696278c1d51 to your computer and use it in GitHub Desktop.
Save JakubOboza/9487cfe49696278c1d51 to your computer and use it in GitHub Desktop.
data Configuration =
Configuration { path :: String,
localhost :: String,
remotehost :: String,
isguest :: Bool,
issuperuser :: Bool,
currentdir :: String,
homedir :: String,
timeconnected :: Integer
}
loadConfig :: Configuration -> Configuration
loadConfig config = do
cf <- loadFromFile $ path config
return cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment