mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-26 13:11:30 +03:00
45a9668370
There is an argument that, for import public, this should be automatic (that is, the publicly imported things should be reexported with the parent namespace). I decided not to do this, because another use of import public which we do a lot in the Idris 2 code base is purely as a convenience, where we still expect things to be in their original namespace. Also, where there's a choice between things being explicit and implicit, I prefer to err on the side of explicit now. So, if what you really want in an API is to reexport, you can do that, but explicitly.
13 lines
151 B
Plaintext
13 lines
151 B
Plaintext
:t id
|
|
:t Uninhabited
|
|
:t pythag
|
|
:t fact
|
|
:t nardle
|
|
:t noo
|
|
Toast.nardle (the Int 8)
|
|
Toast.pythag 10
|
|
Test.pythag
|
|
Toast.Inside.fact 4
|
|
Test.Inside.fact 4
|
|
:q
|