Ignore .hsenv
Remove useless IO wrapping
Rename misleading function name

It's not pure now
Use pattern match instead of if statement
Use bind