on master help sign in
Import dependencies in Atom

This communicates the solution Rui Barreiro and David Christiansen explained to me for Atom. https://groups.google.com/forum/#!topic/idris-lang/5i0FZoYj8A0 The formatting is not perfect, somebody needs to check it for consistency with the rest of the tutorial. I'm also not sure about where exactly this information belongs, since it relates to both imports and to packages, tutorial and Atom. I've put it where I would most likely look for it.

commit12a890957a18d03ee0f50fa770145471c389b700 authorallancto <allancto@users.noreply.github.com> dateThu 29 Dec 2016, 18:06 (10 years ago) parent1a4c80a
1 file changed+22
docs/tutorial/modules.rst+22
docs/tutorial/modules.rst+22
@@ -299,3 +299,25 @@ which can be inferred by the type checker:
299299
300300 *params> show (append _ _ (MkVects _ [1,2,3] [4,5,6]))
301301 "[1, 2, 3, 4, 5, 6]" : String
302+
303+
304+**********************
305+Modules Dependencies Using Atom
306+**********************
307+
308+If you are using the Atom editor and have a dependency on another package,
309+corresponding to for instance ``import Lightyear`` or ``import Pruviloj``,
310+you need to let Atom know that it should be loaded. The easiest way to
311+accomplish that is with a .ipkg file. The general contents of an ipkg file
312+will be described in the next section of the tutorial, but for now here is
313+a simple recipe for this trivial case.
314+
315+- Create a folder myProject.
316+
317+- Add a file myProject.ipkg containing just a couple of lines:
318+
319+``package myProject``
320+
321+``pkgs = pruviloj, lightyear``
322+
323+- In Atom, use the File menu to Open Folder myProject.