mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-18 08:42:11 +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".
13 lines
294 B
Plaintext
13 lines
294 B
Plaintext
1/2: Building Test (Test.idr)
|
|
2/2: Building As (As.idr)
|
|
As> Toast.pythag : Int -> List (Int, (Int, Int))
|
|
As> Toast.Inside.fact : Nat -> Nat
|
|
As> Toast.nardle : Needle a => a -> a
|
|
As> Toast.noo : Needle a => a -> a
|
|
As> 16
|
|
As> [(3, (4, 5)), (6, (8, 10))]
|
|
As> pythag
|
|
As> 24
|
|
As> 24
|
|
As> Bye for now!
|