on master help sign in
Amended docs and updated CHANGELOG.
commita0d1566ee15702a149f8d4c812496194ddb2d9d3 authorJan de Muijnck-Hughes <jfdm@st-andrews.ac.uk> dateThu 29 Sep 2016, 11:08 (10 years ago) parentb949b28
2 files changed+34−22
CHANGELOG.md+7−3 docs/reference/compilation.rst+27−19
CHANGELOG.md+7−3
@@ -40,10 +40,14 @@
4040
4141* Idris' documentation system now displays the documentation for auto
4242 implicits in the output of `:doc`. This is tested for in `docs005`.
43−
4443* New command line flag `--info` that displays information about the installation.
45−
4644* New command line flag `--sourcepath <dir>` that allows adding directories to the source search path.
45+* Allow 'installation' of a package's IdrisDoc documentation into a central location. The default location is the subdirectory `docs` of Idris' data directory.
46+ * New flag `--installdoc <ipkg>` provided to install documentation
47+ * New flag `--docdir` provided to show default documentation installation location.
48+ * New environment variable `IDRIS_DOC_PATH` to allow specification of an alternative installation path for documentation.
49+* Semantic meaning behind several environment variables has been clarified in documentation and code. See compilation section of the reference manual for more details.
50+
4751## Miscellaneous updates
4852
4953* The test suite now uses [tasty-golden](https://hackage.haskell.org/package/tasty-golden). New tests must be registered in `test/TestData.hs`, as explained in the relevant `README.md`.
@@ -51,7 +55,7 @@
5155
5256## UI Changes
5357
54−* The :e command can now handle an $EDITOR with arguments in it, like "emacs -nw"
58+* The :e command can now handle an $EDITOR with arguments in it, like "emacs -nw"
5559
5660
5761# New in 0.12:
docs/reference/compilation.rst+27−19
@@ -86,22 +86,30 @@ overridden through environment variables. The provided variables are:
8686
8787* `IDRIS_CC` Change the `C` compiler used by the `C` backend.
8888* `IDRIS_CFLAGS` Change the `C` flags passed to the `C` compiler.
89−* `TARGET` Change the target directory to generate files.
90−* `IDRIS_LIBRARY_PATH` Change the location of where installed packages are found.
91−
92−Alternativly, and perhaps a cleaner approach is to configure these
93−options using the CLI options. Idris also supports options to augment
94−the paths used, and pass options to the code generator backend.
95−
96−The option `--cg-opt <ARG>` can be used to pass options to the code
97−generator. The format of `<ARG>` is dependent on the selected backend.
98−
99−Further, Idris does support multiple include paths. The CLI option
100−`-i <dir>` allows you to add a directory to the library search path; this
101−option can be used multiple times. This is a cleaner option when you
102−wish to add single directories to the `IDRIS_LIBRARY_PATH` than
103−ammending `IDRIS_LIBRARY_PATH` directly.
104−To add directories to the source search path, use the `--sourcepath <dir>` option.
105−
106−Moreover, rather than using `TARGET` the CLI option `--ibcsubdir` can
107−be used to direct where built IBC files are placed.
89+* `TARGET` Change the target directory i.e. `data dir` where Idris installs files when installing using Cabal/Stack.
90+* `IDRIS_LIBRARY_PATH` Change the location of where installed packages are found/installed.
91+* `IDRIS_DOC_PATH` Change the location of where generated idrisdoc for packages are installed.
92+
93+.. note::
94+
95+ In versions of Idris prior to 0.12.3 the environment variables
96+ `IDRIS_LIBRARY_PATH` and `TARGET` were both used to affect the
97+ installation of single packages and direct where Idris installed
98+ its data. The meaning of these variables has changed, and command
99+ line options are preferred when changing where individual packages
100+ are installed.
101+
102+The CLI option `--ibcsubdir` can be used to direct where generated IBC
103+files are placed. However, this means Idris will install files in a
104+non-standard location separate from the rest of the installed
105+packages. The CLI option `--idrispath <dir>` allows you to add a
106+directory to the library search path; this option can be used multiple
107+times and can be shortened to `-i <dir>`. Similary, the `--sourcepath
108+<dir>` option can be used to add directories to the source search
109+path. There is no shortened version for this option as `-s` is a
110+reserved flag.
111+
112+Further, Idris also supports options to augment the paths used, and
113+pass options to the code generator backend. The option `--cg-opt
114+<ARG>` can be used to pass options to the code generator. The format
115+of `<ARG>` is dependent on the selected backend.