David Christiansen
77324bdeff
Merge pull request #2539 from david-christiansen/hl-kw
...
Better error when asking for non-existent goal type
2015-08-21 15:56:23 -07:00
Edwin Brady
239c8caffa
Move resolveTC to ProofSearch.hs
...
It is, in some sense, a proof search, and this means that auto proof
search can now solve things which require type class resolution.
One side-effect is that type class resolution will now only solve holes
which actually are type classes! So this may break code which was
abusing the type class resolution mechanism - such code can most likely
be rewritten to do proof search.
2015-08-21 17:54:31 +02:00
Edwin Brady
3288a6c8b0
Fix coverage checker for sigma types
...
Using the old name meant it checked the wrong thing so always reported
covering cases
2015-08-21 17:54:31 +02:00
Edwin Brady
0140e67bc9
Tweak to hole lifting
...
Where the hole has a function type, it should display the whole function
type!
2015-08-21 17:54:31 +02:00
David Raymond Christiansen
6ada023143
Better error when asking for non-existent goal type
2015-08-20 21:44:59 -07:00
raichoo
ba3fab0800
Merge pull request #2538 from raichoo/master
...
javascript: support prim_eqPtr
2015-08-20 21:52:01 +02:00
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