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.
我知道有一种方法可以使用 %hide 从导入的库中隐藏函数。但它似乎不适用于数据类型名称,如 Nat 和 Vect。有没有办法隐藏数据类型名称,或者只是不导入标准库?
有几个相关的命令行选项:
$ man idris ... --nobasepkgs Do not use the given base package --noprelude Do not use the given prelude --nobuiltins Do not use the builtin functions ...
例如:
$ idris Idris> :t Nat Nat : Type $ idris --noprelude Idris> :t Nat No such variable Nat