Commit Graph

6657 Commits

Author SHA1 Message Date
David Christiansen
d0b6faf026 Merge pull request #2536 from david-christiansen/hl-kw
Preserve binder locations in custom syntax
2015-08-20 12:10:48 -07:00
raichoo
39c7ea13e2 javascript: support prim_eqPtr 2015-08-20 20:40:25 +02:00
David Christiansen
02ea51a484 Merge pull request #2535 from david-christiansen/hl-if-then-else
Parser-driven highlighting for if/then/else
2015-08-19 17:47:14 -07:00
David Christiansen
a311df12ff Merge pull request #2532 from david-christiansen/hl-kw
Stop traveling through time when highlighting
2015-08-19 17:45:51 -07:00
David Raymond Christiansen
890c6a70f8 Preserve binder locations in custom syntax
This allows editors to highlight custom binding forms appropriately,
where names get the highlighting of their expansions.
2015-08-19 17:29:11 -07:00
David Christiansen
89361719f1 Merge pull request #2531 from david-christiansen/sortBy
sortBy and docs for Prelude.List
2015-08-19 16:34:16 -07:00
David Raymond Christiansen
64db2711c3 Parser-driven highlighting for if/then/else
Previously, these were not highlighted.
2015-08-19 16:23:29 -07:00
David Raymond Christiansen
9af272e352 Stop traveling through time when highlighting
This fixes an issue where keyword highlights were improperly displayed.
2015-08-18 15:05:36 -07:00
David Christiansen
d9bfa3e5a6 Merge pull request #2524 from jeremy-w/choice-docs
Add more documentation for "choice"
2015-08-17 22:46:26 -07:00
David Raymond Christiansen
db83920876 Document all exports of Prelude.List 2015-08-17 21:02:20 -07:00
David Raymond Christiansen
baba8f61db Add sortBy on lists and documentation for sorting 2015-08-17 20:55:11 -07:00
David Christiansen
d9b5682edd Merge pull request #2528 from david-christiansen/wip/tactical
Features and bug fixes for Elab reflection
2015-08-16 21:14:26 -07:00
David Raymond Christiansen
d7db8caaf6 Update test for improved reflection API 2015-08-16 17:06:23 -07:00
Edwin Brady
2cefa5c0c9 Simplify replWith
Its purpose is mostly pedagogical, to make 'main' a one liner when
writing interactive programs without knowing how to use IO yet, so it
should return () so that this works.
2015-08-15 23:15:41 +01:00
Edwin Brady
f3f828c82b Add a couple of doc comments 2015-08-15 23:15:41 +01:00
Niklas Larsson
15d3674585 Merge pull request #2530 from melted/exe
No need to add .exe to the output name, it will be done later anyway
2015-08-15 18:10:35 +02:00
Niklas Larsson
d4f9403dfb No need to add .exe to the output name, it will be done later anyway
And we don't know what code generator is used.

Fixes #2523
2015-08-15 15:40:36 +02:00
David Christiansen
31642c1a99 Merge pull request #2522 from Melvar/fix-syntax-update
Fix substitution when applying syntax rules
2015-08-14 16:26:38 -07:00
Edwin Brady
46bdfa9b89 Revert quasiquote001
Something about library compilation order? Grump...
2015-08-14 13:15:47 +01:00
Edwin Brady
dccd0721a7 Update quasiquoute001 output
This appears to depend on definition ordering in libraries - TCon tag
can change.
2015-08-14 11:52:31 +01:00
Edwin Brady
bddc058df6 (Temporary) remove hasValidIBCVersion check
In Chaser.hs - it appears to be breaking reloading in vim, making
interactive mode not work a lot of the time, and until someone works out
why it seems best removed...
2015-08-14 11:52:31 +01:00
Edwin Brady
29240790ba Remove proofs from List.zipWith and friends
Given that lists don't have any length invariants in their type, it
suggests that we don't care about their lengths except for totality
purposes, so these proofs merely get in the way of perfectly valid uses
of zipWith.

Resolves #2517
2015-08-14 11:52:31 +01:00
Melvar Chen
7f6aeab69c Add tactic cases to syntax substitution 2015-08-14 12:34:43 +02:00
Melvar Chen
7c660c6ac4 Add missing cases to syntax substitution 2015-08-14 12:34:43 +02:00
Melvar Chen
a94a660472 Fix do blocks in rhs of syntax 2015-08-14 12:34:43 +02:00
David Christiansen
f25def1573 Merge pull request #2525 from david-christiansen/directory-1.2.3.0-blacklist
Blacklist directory 1.2.3.0
2015-08-13 22:55:20 -07:00
David Raymond Christiansen
cfa1522c0e Blacklist directory 1.2.3.0
This is to work around an issue with directory on older GHCs.

See https://github.com/haskell/directory/issues/30
2015-08-13 21:51:09 -07:00
Jeremy W. Sherman
576b9679c4 Add more documentation for "choice"
Preserves cross-reference to Haskell, but the documentation no longer depends
on familiarity with Haskell.
2015-08-13 22:42:59 -04:00
David Raymond Christiansen
cf6c277715 Add Eq instance for Universe in reflection 2015-08-13 17:26:03 -07:00
David Raymond Christiansen
d76b58360e Add "choice"
This is called asum in Haskell. I think it's appropriate for the Prelude
because I've defined it myself on a number of occasions.
2015-08-12 22:30:17 -07:00
David Raymond Christiansen
82c2735637 It is now an error to focus on nonexisting holes in Elab scripts
This makes subtle bugs more obvious.
2015-08-12 18:07:44 -07:00
David Raymond Christiansen
603b06cf01 Add missing Show instance for CtorArg 2015-08-12 18:07:30 -07:00
Edwin Brady
8205c13489 Remove tactic proofs from List
Replaced with inline rewriting
2015-08-12 22:28:44 +01:00
Edwin Brady
e2b14272f7 Remove tactic proofs in Nat
Replaced with inline rewrites
2015-08-12 22:28:44 +01:00
Edwin Brady
6e7c036b13 Allow single constructor types in proof search 2015-08-12 22:28:44 +01:00
David Christiansen
65f49450e3 Merge pull request #2516 from david-christiansen/issue/2512
Fix indentation in PCAF parser
2015-08-12 14:00:08 -07:00
David Raymond Christiansen
13adf74505 Fix indentation handling for PCAF parser
Fixes #2512.
2015-08-12 11:13:46 -07:00
David Raymond Christiansen
a660919934 Better failure on indentation stack underflow 2015-08-12 10:45:28 -07:00
David Raymond Christiansen
30585fcddd Add goalType tactic
This is a derived tactic that I've defined in every non-trivial use of
Elab. Better put it in the library.
2015-08-12 10:38:28 -07:00
raichoo
650d3dda18 Merge pull request #2514 from raichoo/master
javascript: tweak event scheduling
2015-08-12 19:02:21 +02:00
raichoo
9b5a218a70 javascript: tweak event scheduling
Events get scheduled way to often which results
in a dramatic performance penalty. Making the
time slices bigger counteracts that.
2015-08-12 16:02:42 +02:00
raichoo
f05199f6e1 Merge pull request #2513 from raichoo/master
javascript improvements
2015-08-12 03:32:37 +02:00
raichoo
4a1d77ec10 javascript: enable more tests 2015-08-12 02:40:43 +02:00
raichoo
b26d401a04 javascript: add LReadStr primitive to node backend 2015-08-12 02:08:06 +02:00
raichoo
f7d97069f5 javascript: free memory in i$valstack properly 2015-08-12 00:57:20 +02:00
raichoo
ac7c313fe6 javascript: schedule continuation every 1000 calls
using stdout with node has a curious side effect. It
allocates memory that will only be reclaimed after
a new event has been scheduled. Therefore we set
a timeout every 1000 calls that will execute the
remaining code.
2015-08-12 00:49:28 +02:00
David Raymond Christiansen
763ac00bfd Merge remote-tracking branch 'upstream/master' into wip/tactical 2015-08-11 11:59:42 -07:00
Edwin Brady
8c283520f3 Some Prelude reorganisation
Added Prelude.Interactive, for the I/O things, including some
convenience functions for starting simple looping interactive programs,
which involved adding Prelude.File too, and moving getArgs to the
Prelude.

Removed a no longer relevant test.
2015-08-10 00:45:40 +01:00
Edwin Brady
6f904d5adf Fix tests due to name change 2015-08-09 16:34:49 +01:00
Edwin Brady
bf6c327105 Allow mutually recursive records
Fixes #2248. The record type can be used anywhere in the mutual block,
but not the projections which are considered part of the definition.
2015-08-09 16:34:49 +01:00