Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在编译的程序中将函数或表达式类型打印到命令行Haskell,就像ghcihas :twhich 打印出类型一样?
Haskell
ghci
:t
使用Typeable约束(来自Data.Typeable),您可以使用show . typeOf.
Typeable
Data.Typeable
show . typeOf