git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
add import to README
379a6f0Bogdan Popa
README.md+16
@@ -669,6 +669,22 @@ foo = A:foo
669bar = A:B:bar
669bar = A:B:bar
670```
670```
671
671
672+All the names in a module can be aliased using the `import` declaration:
673+
674+```
675+import A
676+
677+foo 42
678+```
679+
680+You can also limit which names are going to be aliased:
681+
682+```
683+import A.B (bar)
684+
685+bar 42
686+```
687+
672## Foreign Function Interface
688## Foreign Function Interface
673
689
674The `foreign import` keyword declares a value which is defined in Javascript, and its type:
690The `foreign import` keyword declares a value which is defined in Javascript, and its type: