Ignore hsenv and build directory
Refactor based on hlint suggestions