Commit Graph

6807 Commits

Author SHA1 Message Date
David Raymond Christiansen
01e51f1576 CHANGELOG update for simplified reflection 2015-10-07 11:00:36 +02:00
David Christiansen
539394b0e8 Merge pull request #2699 from david-christiansen/reflection-simplification
Simplify reflection and Raw
2015-10-06 18:29:12 +02:00
David Raymond Christiansen
105c230217 Simplify reflection and Raw
Some constructors of TT will never occur during elaboration, but are
instead a part of the optimization process. Thus, they have been removed
from reflection, to simplify the interface.

Likewise, I discovered that RForce is no longer produced anywhere in
Idris, so it was also deleted from both the reflection API and the
internals.
2015-10-06 17:03:38 +02:00
David Christiansen
75e45f9e7c Merge pull request #2680 from eklavya/patch-1
Safe String to Int function. #2639
2015-10-06 10:41:35 +02:00
Saurabh Rawat
7ae13219a7 fix example 2015-10-05 21:31:23 +05:30
Saurabh Rawat
c2a473a43b removed unnecessary casts, style fixes 2015-10-05 21:22:39 +05:30
Niklas Larsson
0400a881c2 Merge pull request #2697 from melted/temp_ext
Allow an extension on tempfiles
2015-10-05 13:48:29 +02:00
Niklas Larsson
609835e62c Allow an extension on tempfiles 2015-10-05 12:53:11 +02:00
Jan de Muijnck-Hughes
bf1a1ef05c Merge pull request #2692 from mitchellwrosen/patch-2
last -> list
2015-10-04 18:24:55 +01:00
Niklas Larsson
ac9d6fe52e Merge pull request #2694 from melted/include_tweak
Use "" instead of <> for includes
2015-10-04 15:07:34 +02:00
Niklas Larsson
fc3229ff5b Use "" instead of <> for includes
Both searches the standard include dirs. The difference is that with
"" the local dir is looked at first, which <> don't do.
2015-10-04 01:37:47 +02:00
Mitchell Rosen
17087a74f9 last -> list 2015-10-03 12:18:12 -07:00
Jan de Muijnck-Hughes
97d9240522 Merge pull request #2690 from justjoheinz/patch-1
Fix typo
2015-10-03 16:18:00 +01:00
Markus Klink
332696937b Fix typo 2015-10-02 23:18:45 +02:00
Saurabh Rawat
93028099f9 Integer overflow fix, style fixes 2015-10-02 23:25:09 +05:30
David Christiansen
a79463e977 Merge pull request #2687 from david-christiansen/pruviloj
Pruviloj + updates
2015-10-02 18:10:31 +02:00
David Raymond Christiansen
5902e1d5a4 Pruviloj ops for splitting products 2015-10-02 16:19:56 +02:00
David Raymond Christiansen
00d011cccf Fix display of :missing on non-ANSI terminals
Before, it was dumping ANSI codes. Now it uses the standard
pretty-printing facilities.
2015-10-02 16:19:25 +02:00
David Raymond Christiansen
9f9be2e330 Add disjointness and injectivity automation
These are prerequisites for DecEq deriving.
2015-10-02 15:45:50 +02:00
Saurabh Rawat
01a11c77a8 parsing negative and non negative numbers 2015-10-02 18:49:18 +05:30
David Raymond Christiansen
65dde92169 Preserve context mods after recursive Elab script
This ensures that context modifications are preserved and that terms are
re-checked in the modified context. Fixes an issue where helper lemmas
generated in scripts would disappear.
2015-10-02 15:00:35 +02:00
David Raymond Christiansen
76bcaf2fa3 Add the ability to look up if a name is a TC to Elab
Now, Elab scripts can check whether a name denotes a type class.
2015-10-02 09:21:22 +02:00
David Raymond Christiansen
c9973eb7c3 Add andThen and refine to Pruviloj
andThen is a subgoal sequencing combinator, and refine is a bit like
Coq's eapply.
2015-10-01 18:28:40 +02:00
David Raymond Christiansen
210db7d664 Clean up inference in Pruviloj
Now, the proper Infer type is used, and a tactic is exported.
2015-10-01 17:00:25 +02:00
Jan de Muijnck-Hughes
6ee21c78fa Merge pull request #2683 from jfdm/perf-effect
The `PERF` Effect.
2015-10-01 15:09:42 +01:00
Niklas Larsson
c234038453 Merge pull request #2684 from 4e6/travis-container-infrastructure
Moving to Travis container infrastructure
2015-10-01 15:09:27 +02:00
Jan de Muijnck-Hughes
3998c4f402 Merge pull request #2681 from jfdm/file-effect-contrib
Added whole R/W effectful file ops.
2015-10-01 14:01:12 +01:00
Jan de Muijnck-Hughes
89f49b8881 Merge pull request #2682 from jfdm/log-eff-updates
Removed 'erroneous' Show instance for `LogRes`.
2015-10-01 13:57:49 +01:00
Jan de Muijnck-Hughes
bcc5fbfb0b The PERF Effect.
A simple Effect to gather performance metrics from effectful programs.
This has been used in 'production' and something that may be of use to
others.
2015-10-01 13:40:46 +01:00
Dmitry Bushev
7dde291b3e fix GHC 7.10 compilation warning
warnings fail builds with CI (-Werror) compilation flag enabled
2015-10-01 14:15:08 +03:00
Dmitry Bushev
291f69a1b3 build script for Travis container-based infrastructure
new script is based on hvr/multi-ghc-travis template, featuring

+ build against multiple GHC vesions (currently 7.6, 7.8 and 7.10)
+ dependencies caching and cache invalidation on dependencies changes
2015-10-01 14:15:08 +03:00
Edwin Brady
18e4b21071 Minor change to display of metavariables
Displaying things with machine generated names is really just noise, and
potentially confusing since they're inaccessible and typically an
artefact of the elaboration process, so hide them.

(If this turns out to be differently confusing, we'll have to consider
an option to display them. Maybe we should do that anyway.)
2015-10-01 11:24:00 +01:00
Saurabh Rawat
63ff875dd3 use ord to get '0's int value 2015-10-01 14:30:13 +05:30
Jan de Muijnck-Hughes
7f61ef634e Added whole R/W effectful file ops.
Operations on success will return the contents of the file (for read),
and Unit for write.  Upon failure the functions will return a user
supplied data type that is used to store the 'file name' upon which
these operations were called. This is to allow the user to decide if
these operations should raise exceptions, and also how to represent
the error.

Further, default forms have been supplied that 'just' return the file
name upon failure.
2015-10-01 08:41:22 +01:00
Jan de Muijnck-Hughes
e973421406 Removed 'erroneous' Show instance for LogRes. 2015-10-01 08:27:49 +01:00
Saurabh Rawat
2f9989086e remove extra newline at the end 2015-10-01 11:07:26 +05:30
Saurabh Rawat
38b08c5116 String to Int function. #2639 2015-10-01 11:04:34 +05:30
Edwin Brady
b54006872f Add $!! when reloading in processNet 2015-09-30 20:23:59 +01:00
Jan de Muijnck-Hughes
8e8fd659a0 Merge pull request #2674 from jfdm/fix-ipkg-parsing-mistake
Fixed parsing error in ipkg files
2015-09-28 16:21:08 +01:00
Jan de Muijnck-Hughes
ae7bdd1f22 Added missing expected file 2015-09-28 13:32:33 +01:00
Jan de Muijnck-Hughes
824d0e3ea2 Fixed mistake and added test 2015-09-28 12:39:35 +01:00
Jan de Muijnck-Hughes
44c5d61696 Fixed parsing error in ipkg files
+ Options was not updated to preserve any previosuly set options from.
2015-09-28 12:17:52 +01:00
Niklas Larsson
b8a8c79ca2 Merge pull request #2668 from jfdm/ipkg-file-improvements
Improvements to ipkg files for dependancies.
2015-09-28 02:15:04 +02:00
Jan de Muijnck-Hughes
a497ca7624 Removed sectioning and malformed code comments. 2015-09-27 11:17:46 +01:00
Jan de Muijnck-Hughes
0d78f192bd Improvements to ipkg files for dependancies.
iPKG files have a new option `pkgs` which takes a comma-separated list
of package names that the idris project depends on. This reduces bloat
in the `opts` option with mutliple package declarations.

So rather than have:

```
package foo

opts = "-p lightyear -p containers -p tests -p pruviloj -p effects -p x --log 4"
```

we can now sayL

```
package foo

opts = "--log 4"

pkgs = lightyear, containers, tests, pruviloj, effects, x
```
2015-09-26 13:43:53 +01:00
David Christiansen
2f7d8c2669 Merge pull request #2665 from david-christiansen/pruviloj
Add pronunciation guide for "pruviloj"
2015-09-25 17:28:09 +02:00
David Raymond Christiansen
b97d4b65ec Add pronunciation guide for "pruviloj" 2015-09-25 17:27:06 +02:00
David Christiansen
b9a7e94163 Merge pull request #2649 from david-christiansen/pruviloj
Library of tactics for proof automation with Elab
2015-09-25 16:38:34 +02:00
David Raymond Christiansen
a6c5150f4f Add README for Pruviloj 2015-09-25 16:37:53 +02:00
David Raymond Christiansen
02abb9a431 Library of tactics for proof automation with Elab
I'm collecting all the various tactics that I've defined in my various
projects that have proven to be useful and making them into an
includable library, both as an example of Elab reflection and to have a
semi-standard vocabulary.
2015-09-25 13:24:42 +02:00