Reputation: 32304
Other than loading a Haskell file into GHCi and then using :type <expr>
, is there any way to have the compiler display types for all of the functions as they are compiled?
Upvotes: 13
Views: 918
Reputation: 25782
If you pass -fwarn-missing-signatures
(or -Wall
) to GHC it will list every top-level function that has no type annotation in the file, together with the inferred type.
Upvotes: 15