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.
我很感兴趣,因为我想检查 Prelude 中内置函数的定义。
我搜索了它,但只在 ~/.cabal/share/idris 中找到了预编译文件...
根据 Vitus 的评论,我在这里找到了来源:
https://github.com/idris-lang/Idris-dev/tree/master/libs
对于较小的查询:printdef,REPL中也有
:printdef
Idris> :printdef uncurry uncurry : (a -> b -> c) -> (a, b) -> c uncurry f (a, b) = f a b