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).
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 toIO (String,String)
instead ofIO (Maybe (String,String))
. Also,getConfigFileAndModuleName
is not a good name, we should change it intorecompileConfigIfNeeded
to make more clear its role compared to the other functionrecompileConfig
(the second one recompiles always).