mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-21 02:31:50 +03:00
028624a18d
Instead of just the cursory name update that we used to do (which didn't work properly anyway for a lot of reasons), now we add aliases for all the names in the imported module. So, like Idris 1, every global has a canonical name by which we can refer to it, but it can also have aliases via "import ... as".
8 lines
91 B
Idris
8 lines
91 B
Idris
module As
|
|
|
|
import Test as Toast
|
|
|
|
Toast.Needle Int where
|
|
nardle x = x + x
|
|
noo x = x * x
|