Code now passes hlint.