Display an inferred type during compilation
2013-04-27 16:55:16 GMT
can I ask the compiler to display the type of an inferred value during compile time?
It would be great if I can output a string during compilation with the type.
A little bit like running :type in GHCi, but without GHCi... Because running GHCi is sometime painful (I have to clean my code first).
I'm thinking of something like:
main :: IO ()
main = do
a <- someCode
$ ghc -c test.hs
test.hs:4:3: your type is: Foo
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe <at> haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe