3 ms·
It is Haskell's definition, however. All functions that have `unsafe` as part of their name have it because they can lead to u.b. with improper use.
by Blikkentrekker 6y ago
It is Haskell's definition, however.
All functions that have `unsafe` as part of their name have it because they can lead to u.b. with improper use.
- EE84M3i 6y agoIs it? The definition I see in the GHC docs seems to be broader than that: https://downloads.haskell.org/ghc/latest/docs/html/users_guide/safe_haskell.html#safe-language https://downloads.haskell.org/ghc/latest/docs/html/users_gui... Regardless, I agree the function under discussion though, "head", is not "unsafe" in either sense. That's why I said "as an aside".