Commit graph

36377 commits

Author SHA1 Message Date
Sebastian Ullrich
ad8c551572 chore: Nix: reduce runtime closure of cmake derivations 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
e094bdcd62 chore: Nix: print cumulative and per-line execution time on CI 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
4061894943 chore: Nix: set up ccache config & fix ccache stats step 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
feedb539cd chore: import orphaned files in Lean 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
a6f8ff94ca chore: Nix: exclude leanmake test 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
e6fcd61173 chore: Nix: tidy packages up a bit 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
6e406d50d9 chore: Nix: cache stage 0 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
31876691dc chore: Nix: build thin static libraries
Less disk churn and .o files are automatically included in binary cache pushes
2020-11-24 19:16:27 +01:00
Sebastian Ullrich
3439cc80b3 chore: Nix: fix compilation on macOS 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
bcebc0a145 chore: Nix: set up Cachix 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
2407673394 chore: Nix: install flakes-enabled Nix directly from Hydra 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
70daaab0a0 chore: Nix: use /nix/var/cache/ccache for macOS 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
baeea69972 chore: Nix: basic GitHub Actions setup 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
9a5867ffd7 chore: ignore result files from nix build 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
8b33ce9bdf chore: Nix: strip "Git dir ... is dirty" warnings 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
511a958f56 fix: Nix: require lean4-mode on Emacs startup 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
73e9b96cdc refactor: Nix: move out lean-dev script 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
092d5d67b4 chore: Nix: rebase old shell.nix setup on new flake.nix one, add shell nix attribute for pinned flakes-enable Nix 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
4d3d7cb4a6 fix: Nix: minor fixes in lean-dev 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
1dedafa173 fix: Nix: use current stage for files outside of source root 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
6845d18119 fix: Nix: separate development and package lean/emacs 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
f6fcca6316 feat: Nix: multi-platform, reorganize outputs 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
b2c83a37d8 feat: Nix: Emacs PoC 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
50abe8352b feat: allow specifying file name with --stdin 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
8b027235dc chore: Nix: split new.nix into more meaningful parts 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
50555e7db5 chore: Nix: make buildMod nix develop-friendly 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
df99a6a469 fix: Nix: tests (almost, apart from leanmake & server tests) 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
f5db6575e8 chore: Nix: always use stage 1 leanc & headers 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
a31802d5e2 chore: Nix: use lld to speed up linking by ~1s 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
7395cddfe9 chore: Nix: link final binary in separate derivation to avoid rerunning cmake build on Lean-only changes 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
cae60eb106 chore: Nix: reduce evaluation time with custom mkDerivation & other tweaks 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
875ca7ed7e chore: Nix: new stages & other tweaks 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
0212ccd3e2 feat: Nix: compatibility default.nix 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
c6929ae69a feat: Nix: basic setup 2020-11-24 19:16:27 +01:00
Sebastian Ullrich
56d6bbbf05
doc: phrasing 2020-11-24 15:58:10 +01:00
Leonardo de Moura
f37fd97d9f chore: fix test 2020-11-23 18:34:38 -08:00
Leonardo de Moura
a44e51ce2e fix: identifiers highlighting and literals 2020-11-23 18:32:39 -08:00
Leonardo de Moura
0fc0bf0593 chore: use instance ... where in the docs 2020-11-23 18:30:21 -08:00
Leonardo de Moura
f456e006dc chore: test instance ... where 2020-11-23 18:24:23 -08:00
Leonardo de Moura
0a3d584ef2 chore: update stage0 2020-11-23 18:09:10 -08:00
Leonardo de Moura
5884b9c19a feat: add support for instance ... where
@Kha The fields are not mutually recursive yet, but it is good enough
 for writing examples in the manual.

See new test
2020-11-23 18:07:02 -08:00
Leonardo de Moura
645c1034a0 chore: reduce compilation time 2020-11-23 16:18:55 -08:00
Leonardo de Moura
be812081f4 chore: using "unbound implicit locals" 2020-11-23 13:09:02 -08:00
Leonardo de Moura
cc321a9d75 chore: update stage0 2020-11-23 12:09:37 -08:00
Leonardo de Moura
ac85650e0a feat: add optional where clause at declarations
closes #191

@Kha Note that it expands into a "let rec".
There are many other places where an optional `where`-clause is
useful. We can add them later. It is relatively easy to add support in
other places using the new helper functions
`expandWhereDeclsOpt` and `expandMatchAltsWhereDecls`
2020-11-23 12:04:51 -08:00
Leonardo de Moura
74c604e51e chore: update stage0 2020-11-23 10:50:31 -08:00
Leonardo de Moura
3f27d7318e chore: prepare to add where clause to declarations 2020-11-23 10:41:12 -08:00
Leonardo de Moura
3d68a59366 chore: add link to manual 2020-11-23 10:21:52 -08:00
Leonardo de Moura
5b23efc112 chore: update FAQ 2020-11-23 10:19:15 -08:00
Leonardo de Moura
d5c7f91b83 chore: reorg manual main page 2020-11-23 09:58:51 -08:00