Niklas Larsson
a7062479fa
Fix build with clang on Windows
2015-09-21 04:23:29 +02:00
Niklas Larsson
fe9247356e
Merge pull request #2632 from ExNexu/patch-1
...
Add --package contrib to tutorial
2015-09-20 16:54:38 +02:00
Niklas Larsson
50878fa319
Merge pull request #2638 from NightRa/patch-2
...
Fix Char-Ascii docs
2015-09-20 01:15:13 +02:00
Ilan Godik
56afb44034
Fix Char-Ascii docs
2015-09-20 00:45:09 +03:00
David Raymond Christiansen
30f55ced5f
Merge remote-tracking branch 'upstream/master' into wip/tactical
...
Conflicts:
CHANGELOG
src/Idris/AbsSyntaxTree.hs
2015-09-19 14:23:20 +02:00
David Raymond Christiansen
1d40dbd962
Make it possible to disable tactic deprecation
2015-09-19 14:20:58 +02:00
David Christiansen
aba225c3f5
Merge pull request #2635 from david-christiansen/coverage-default
...
Use elaborated form of cases to check for defaults
2015-09-19 13:23:53 +02:00
David Christiansen
f1ff8fb728
Merge pull request #2634 from david-christiansen/namesInQQ
...
Respect quotation when expanding parameters
2015-09-19 13:17:13 +02:00
David Raymond Christiansen
aeb703e015
Use elaborated form of cases to check for defaults
...
Before, the check for a default catch-all case was done using PTerm and
the Placeholder constructor. Now, universal cases at the end are found
by checking that all arguments are elaborated to pattern variables. This
can catch cases where it's not an explicit placeholder, and it avoids
confusion with constructors by checking the binders of the elaborated
case.
2015-09-19 12:23:42 +02:00
David Raymond Christiansen
92c195961c
Respect quotation when expanding parameters
...
This keeps where-bound names from occaisionally failing in
antiquotations because they weren't expanded to where-names.
2015-09-19 10:52:27 +02:00
David Christiansen
6d7d3bdba1
Merge pull request #2630 from david-christiansen/namesInQQ
...
Make name operations on PTerm quotation-aware
2015-09-19 08:54:55 +02:00
Stefan Bleibinhaus
d3389d150c
Add --package contrib to tutorial
2015-09-18 16:44:14 -07:00
David Raymond Christiansen
071d34b3fc
Make name operations on PTerm quotation-aware
...
This fixes an obscure issue where certain do-bound names that did not
shadow, but were identical to, other do-bound names in different
subexpressions of one larger expression would fail when referred to in
antiquotations. Example:
(do h <- gensym
claim h a
fill `(C1 ~(Var h)); solve) <|>
(do h <- gensym
claim h b
fill `(C2 ~(Var h)); solve)
The second antiquoted h would throw a "No Such Variable" error, because
the second lambda-bound h was renamed at one point without its use site
being renamed similarly.
2015-09-18 23:20:02 +02:00
Niklas Larsson
9243fdfc42
Merge pull request #2629 from melted/fix_completion
...
Add desugarnats to completion
2015-09-18 00:45:32 +02:00
Niklas Larsson
81a73e95e9
Add desugarnats to completion
2015-09-17 22:57:18 +02:00
David Christiansen
2535873e47
Merge pull request #2627 from comco/patch-1
...
Add Vim command for declaration documentation
2015-09-17 19:17:00 +02:00
comco
98d6a8750a
Add Vim command for declaration documentation
2015-09-17 18:30:30 +02:00
Niklas Larsson
0345e41479
Merge pull request #2624 from juhp/patch-3
...
allow utf8-string 1.0.*
2015-09-17 16:31:48 +02:00
Jens Petersen
ce8b625ede
allow utf8-string 1.0.*
2015-09-17 10:00:45 +09:00
Niklas Larsson
1c24404553
Merge pull request #2618 from cbiffle/cbiffle-syntax-guide-imports
...
syntax guide: discuss modules, imports.
2015-09-17 00:42:13 +02:00
Niklas Larsson
abc76e137a
Merge pull request #2619 from david-christiansen/substr-2
...
Be more thorough in substring testing
2015-09-17 00:41:44 +02:00
Niklas Larsson
724e78bfd5
Merge pull request #2620 from ben-schulz/fix/master/repl_desugarnats
...
Add option to desugar nats in REPL output
2015-09-17 00:41:31 +02:00
Cliff L. Biffle
33fb42675a
syntax guide: discuss modules, imports.
...
This discusses the previously-undocumented "import X as Y" facility.
This seemed like a good time to discuss the high-level file structure,
so I added a bit of that.
2015-09-15 20:09:37 -07:00
ben-schulz
49fae22e4b
Add option to desugar nats in REPL output
...
Added option 'desugarnats' to REPL's ':set' and ':unset' commands.
Setting this option prevents the pretty-printer from resugaring terms
of type Nat, as resugaring may obscure unification performed by an
implicit search. The 'desugarnats' option is set to 'false' by default.
Resolves : #2507
2015-09-15 22:07:12 -05:00
David Christiansen
3a32759711
Merge pull request #2603 from Melvar/shift-vect
...
Merge Data.VectType into Data.Vect, and cleanup
2015-09-15 17:05:28 +02:00
David Raymond Christiansen
e9d9041f6b
Be more thorough in substring testing
...
Now it is also tested what happens with a positive offset and negative
length (the empty string should be returned).
2015-09-15 15:57:46 +02:00
Niklas Larsson
f4352a75ba
Merge pull request #2617 from david-christiansen/substr-2
...
Substring as primitive
2015-09-15 12:42:41 +02:00
David Raymond Christiansen
066e890a68
Substring as primitive
...
Introduce a new primitive for taking substrings. This can't really be
done efficiently with strTail and strCons, so I think it deserves to
exist as a primitive. Implementations are included for the evaluator as
well as the C and JS backends. Other backends will need to implement it.
2015-09-15 09:48:31 +02:00
Niklas Larsson
69d4b2a997
Merge pull request #2615 from melted/js_unicode
...
Make a utf-8 string in getLine for Node
2015-09-14 15:03:45 +02:00
Niklas Larsson
2869be1dec
Make a utf-8 string in getLine for Node
2015-09-14 14:01:04 +02:00
David Christiansen
6fc713d2a9
Merge pull request #2606 from NightRa/patch-1
...
Fix a typo in the Cast documentation
2015-09-12 09:19:45 +02:00
David Christiansen
d583ff0ef8
Merge pull request #2607 from sdroege/faq-typo
...
faq: Fix typo in argument name of ifThenElse
2015-09-12 09:19:21 +02:00
Sebastian Dröge
f121da7417
faq: Fix typo in argument name of ifThenElse
2015-09-11 23:59:24 +02:00
Ilan Godik
053ffdce08
Fix a typo in the Cast documentation
2015-09-11 22:10:39 +03:00
Niklas Larsson
be157aabd7
Merge pull request #2604 from melted/clean_compile
...
Remove the --yes-really flag from codegens
2015-09-11 19:09:04 +02:00
Niklas Larsson
b19d03cfb9
Remove --yes-really
...
See discussion on #2579
2015-09-11 17:59:27 +02:00
Niklas Larsson
cb11c39a1c
Cleanup in Compiler.hs
2015-09-11 15:50:12 +02:00
Melvar Chen
319d143697
Remove obsolete reflected tactic
...
The search tactic and thus auto will do the same thing.
2015-09-11 14:56:30 +02:00
Melvar Chen
6e49c84c5e
Add Ordering composition and use it for Ord (Vect n a)
2015-09-11 14:56:30 +02:00
Melvar Chen
6b4c4d27b7
Give Vect.findIndices & Co a more useful type
2015-09-11 14:56:30 +02:00
Melvar Chen
3f24fac101
Clean up various Data.Vect functions
2015-09-11 14:56:30 +02:00
Melvar Chen
50b5031405
Merge VectType into Vect to be more like other Data.*
2015-09-11 14:56:30 +02:00
David Raymond Christiansen
bba27b6ba2
Remove +, -, and * on Fin
...
There are a number of reasonable type signatures for these, and there
doesn't seem to be a reason to prioritize the particular versions in the
library. They generated more questions than actual use.
2015-09-10 18:20:30 +02:00
David Raymond Christiansen
6cf7f5a9c5
Fix proof script deprecation warnings
2015-09-10 18:01:36 +02:00
David Raymond Christiansen
90bbf061dc
Add deprecation warning for %elim
...
The command-line option --no-elim-deprecation-warnings turns it off, so
that users wanting to write backwards-compatible libraries can still run
it.
2015-09-10 18:00:42 +02:00
David Christiansen
fa6a50ad5e
Merge pull request #2599 from scshunt/master
...
Use uninhabited instance for nonempty.
2015-09-10 17:32:20 +02:00
Sean Hunt
b9e9c52803
Add myself to CONTRIBUTORS.
2015-09-10 09:25:39 -04:00
Sean Hunt
8501e6d93b
Use uninhabited instance for nonempty.
2015-09-10 09:18:04 -04:00
David Raymond Christiansen
b28fecf6d2
Fix docstring
2015-09-10 14:14:57 +02:00
David Raymond Christiansen
752a2fcc77
Update tests for proof deprecation
2015-09-10 12:01:39 +02:00