« Previous | Next » 

Revision 0c76f280

ID0c76f280a8a82d4f80114b26fb8ee86637efaa37
Parent b1a9d630
Child 85890a9d

Added by Iustin Pop over 11 years ago

Add hlint warning for wrong use of 'length'

While removing split instances check from hcheck, I saw a wrong use of
'length': this should only be used when one needs the actual length of
the list, and not when one wants to check whether the list is empty or
not (in that case, 'null' should be used).

To prevent this in the future, let's add a hlint hint for it, and fix
the warning it generates in hbal.

Signed-off-by: Iustin Pop <>
Reviewed-by: Agata Murawska <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences