If I define a function using "undefined" like this, it type-checks.
add2 :: Int -> Int -> Int
add2 = undefined
Is it possible to detect if any function is using "undefined" in the function definition, and turn it into a warning?
It would be useful that in development-phase, I can use "undefined" to check if the type signature is correct before I implement the function. And then on production I can have some way to catch the mistakes that I forgot to give implementation for functions that had "undefined".