ssadler / hawk

Awk for Hoodlums
BSD 3-Clause "New" or "Revised" License
35 stars 2 forks source link

getConfigFileAndModuleName and recompileConfig should return IO (String,String) instead of IO (Maybe (String,String)) #49

Closed melrief closed 11 years ago

melrief commented 11 years ago

The new version of Hawk enforces the existence of a configuration. If the configuration doesn't exist, then a default configuration is copied in $HOME/.hawk/. I think we should change the signature of the two functions that work with the user configuration to IO (String,String) instead of IO (Maybe (String,String)). Also, getConfigFileAndModuleName is not a good name, we should change it into recompileConfigIfNeeded to make more clear its role compared to the other function recompileConfig (the second one recompiles always).

gelisam commented 11 years ago

+1