Haskell really does warn about unused vars!

yujiri8 profile image Ryan Westlund ・1 min read

Turns out, GHC has a bunch of warnings with -W* flags like Clang or GCC. When I wrote Against Variable Declarations, I initially used Haskell as an example of a language implements what I described, but then I realized GHC didn't warn about unused local variables and I had no idea where I'd gotten the idea that it did, so I edited it to not mention Haskell. But it turns out GHC does! Just not by default.


markdown guide