Usage is Prelude.headgenerally considered bad practice: partial functions are always dangerous; code as
if null list then
...
else
let foo = head list in ...
often recorded by beginners, but of course it’s better to be pronounced
case list of
[] -> ...
(foo:_) ->
, - , . , , – viewL, .