[Haskell-cafe] Display an inferred type during compilation
corentin.dupont at gmail.com
Sat Apr 27 18:55:16 CEST 2013
can I ask the compiler to display the type of an inferred value during
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe