Improved function 'isState'.
Fixed unused bind warning, expliciting that a result is not used.
Avoided unnecesary calls to return and void, as well as some parenthesis.
It turns out the 'void' I deleted was to remove a warning. I discarded the result explictly, binding it to a wildcard.
Just improved layout of openSimpleStore.
In function 'ableToBreakLock': Improved layout, factored out a 'return' call and replaced bind with functor map.
Function 'ableToBreakLockError' now only does one comparison. It does the same thing, but more directly. I keep the old definition commented.
Shadowed variable removed via eta-reduction.
Conditional replaced with 'when' function.
Avoided unnecessary pattern match.
Wildcard for unused argument.
Replaced conditional with 'when' function.