style: stop using many line definition
style: follow the new Haskell style guide better
style: follow new Haskell style guide
Fix #783, resolve scoping bug with shadowing in case patterns