Is there a way of printing the function or expression type to the command line in a compiled Haskell
program, much like how ghci
has :t
which prints out the type?
With a Typeable
constraint (from Data.Typeable
), you can use show . typeOf
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With