Commit Graph

6628 Commits

Author SHA1 Message Date
Guglielmo Fachini
3ec5b5cb1d Fix parameters documentation in the record's customized display 2015-09-03 21:34:41 +02:00
Guglielmo Fachini
0fe4649741 Add a customized display for records documentation
- Update the REPL :doc command output

- Update the HTML generation (--mkdoc)
2015-09-02 10:48:39 +02:00
Guglielmo Fachini
3f31e4efd5 Add support to keep track of records in IBC files 2015-09-02 10:48:39 +02:00
Guglielmo Fachini
555feb5dbf Add support to keep track of records in IState
- Define a new data type to store information about records (RecordInfo)
  In particular: parameters, constructor and projections

- Add a new field to IState (idris_records)

- Update record elaboration so that the elaborated record is added
  to idris_records
2015-09-02 10:48:39 +02:00
Edwin Brady
4932d1cf63 Pi binders can never unify with Type
Make this an unrecoverable error. This helps the coverage checker and
unification
2015-09-01 22:28:47 +01:00
Edwin Brady
47db07012a Proof search fix
Check for metavariable application didn't actually look for arguments,
preventing some perfectly reasonable searches from happening. Two
regression tests added (under proofsearch00x)
2015-09-01 21:17:09 +01:00
Edwin Brady
b573bf0e63 Improve addImpl under PHidden
Under a PHidden we can't encounter new pattern variables, so make
addImpl aware of this. As a result, there's no longer any need to
qualify constant function names under a function application on the lhs.
2015-09-01 20:26:35 +01:00
Edwin Brady
908f2f241f Transform rules and constraints
Transform rules shouldn't be adding things to the global set of universe
constraints, since they have nothing to do with them. This turns off
universe constraints in partial evaluator generated definitions in
particular, which should not interfere with type checking of the rest of
the program.
2015-09-01 15:18:34 +01:00
Edwin Brady
2e170bfd01 Remove dubious matching rule
IIRC this was a hack for scoped implicits, but whatever it did isn't
tripped up in the tests any more and it's a horrible hack anyway, so off
it goes.
2015-09-01 15:17:30 +01:00
Edwin Brady
53ffd071d5 Injectivity assumptions
Parameters should only be assumed to be injective if they also happen to
be type class parameters, otherwise some things will type check which
otherwise shouldn't.
2015-09-01 11:54:14 +01:00
Edwin Brady
cf47310a41 Change form of CHANGELOG
This new format divides updates into various categories, and makes it
much easier to write release notes. It's also useful to order by
approximate importance (but this is mostly subjective so not sure
it's worth trying too hard to do that.)
2015-09-01 00:33:55 +01:00
Edwin Brady
8472399e9c Update version number 2015-08-31 20:28:06 +01:00
Edwin Brady
141f5f1a52 Test output correction 2015-08-31 20:28:06 +01:00
Edwin Brady
d3b66cd420 Slight relaxation of proof search rules
Search if there's a function in a constructor index too, don't require
it to be a constructor, since this should be enough to discriminate.
2015-08-31 20:28:06 +01:00
Edwin Brady
55ffc21e5f Some display tweaks for explicit arguments 2015-08-31 20:28:06 +01:00
Jan de Muijnck-Hughes
60f0cb5f3e Merge pull request #2543 from jfdm/record-docs
Updates to Documentation
2015-08-31 08:11:15 +01:00
Jan de Muijnck-Hughes
fea108a4b5 Merge pull request #2563 from jeremy-w/patch-2
Unescape '\' in list of non–user-definable symbols
2015-08-31 08:08:20 +01:00
Jeremy W. Sherman
c4faa92135 Unescape '\' in list of non–user-definable symbols
The docs made it seem that a double-backslash was not user definable.
It turns out that it's a single backslash that's not user definable;
the docs preserved escaping from the Haskell implementation
(cf. src/Idris/ParseHelpers.hs:/invalidOperators/).

Thanks to @mietek, niklasl2, and @Melvar for pointing this out
in #idris.
2015-08-30 23:06:15 -04:00
Niklas Larsson
dc5e42dbc3 Merge pull request #2561 from melted/tty
Check for TTY when setting colour
2015-08-28 19:40:06 +02:00
Edwin Brady
1e80f1f3cc No newline after case in :makecase 2015-08-28 18:28:50 +01:00
Niklas Larsson
e86b0f6d0a Check for TTY when setting colour
This means that when doing a redirect to file, one doesn't have to turn
off colour manually.
2015-08-28 18:42:06 +02:00
David Christiansen
378bbd6f98 Merge pull request #2560 from jeremy-w/patch-1
Fix typo in doc comment
2015-08-28 08:45:11 -07:00
Jeremy W. Sherman
5b841fb7b1 Fix typo in doc comment
Reported by user Freefood in #idris on Freenode.
2015-08-28 07:37:39 -04:00
David Christiansen
102bd6b523 Merge pull request #2558 from david-christiansen/windows-colour
Experimental support for console colours on Windows
2015-08-27 16:41:10 -07:00
David Raymond Christiansen
dfba993f4c Experimental support for console colours on Windows 2015-08-27 14:29:38 -07:00
David Christiansen
768ddb1cd2 Merge pull request #2557 from Heather/typo
typo: concatenatation -> concatenation
2015-08-27 08:45:58 -07:00
Heather
50104a4c1c typo: concatenatation -> concatenation 2015-08-27 17:20:23 +04:00
David Christiansen
0b3f26087d Merge pull request #2551 from david-christiansen/wip/tactical
Insert namespace information to declaration-level %runElab
2015-08-26 22:45:27 -07:00
David Christiansen
7642503875 Merge pull request #2554 from LeifW/remove_lens_dep
Remove direct dep on lens
2015-08-26 17:36:32 -07:00
David Raymond Christiansen
ffb50e2023 Insert namespace information to declaration-level %runElab 2015-08-26 17:07:01 -07:00
Leif Warner
13623f63f7 Remove direct dep on lens
While lens is a transitive dep of trifecta, we're not using it directly.
Don't think specifying ranges on it is helpful for us.
2015-08-26 15:26:07 -07:00
Niklas Larsson
3e9a19e7fe Merge pull request #2553 from melted/icon2
Added the icon in the wrong dir
2015-08-26 22:15:59 +02:00
Niklas Larsson
dec64c40fc Added the icon in the wrong dir 2015-08-26 22:14:52 +02:00
Niklas Larsson
9af1241c90 Merge pull request #2552 from melted/icon
Add a windows icon.
2015-08-26 21:59:41 +02:00
Niklas Larsson
659ab8ce93 Add a windows icon. 2015-08-26 21:58:25 +02:00
David Christiansen
822142ab0a Merge pull request #2548 from david-christiansen/wip/tactical
Latest Elab reflection updates in preparation for upcoming release
2015-08-26 09:10:28 -07:00
David Christiansen
7b580241ea Merge pull request #2547 from Melvar/fix-number-show
Fix show for negative numbers
2015-08-26 09:08:09 -07:00
Edwin Brady
f5aecf7bb7 Deferred autos
These should be solved after type class resolution - they are intended
as 'side conditions' that can be proved independently, so they aren't
supposed to influence resolution. Fixes #2549.
2015-08-26 11:50:51 +01:00
Edwin Brady
81e19625f2 Type class resolution shouldn't use match_apply
This can resolve things too early which shouldn't be resolved. We only
had match_apply as a workaround for some earlier bugs...
2015-08-26 10:38:13 +01:00
David Raymond Christiansen
a297e02d29 Fix typo in docstring for Tactics.apply 2015-08-25 19:00:09 -07:00
David Raymond Christiansen
a953ba2762 Update test for new API 2015-08-25 17:38:03 -07:00
Melvar Chen
9dd4233da4 Adjust test primitive002 to backends' output 2015-08-26 02:35:00 +02:00
Melvar Chen
c51bf7eca5 Fix comparison ops in JS backend 2015-08-26 02:35:00 +02:00
Melvar Chen
deb4d41599 Show Double with full precision on C backend 2015-08-26 02:35:00 +02:00
Melvar Chen
073d5efad7 Fix primitives002 to do what it's supposed to 2015-08-26 02:34:59 +02:00
David Raymond Christiansen
6432db2140 Show MNs that occur in the goal in the interactive provers
Previously, some assumptions were erroneously hidden, because we only
checked for relevance to the other assumptions.

Fixes #2545.
2015-08-25 15:52:16 -07:00
David Raymond Christiansen
7bde028b12 Use subst for intro, rather than updsubst
This is because we are introducing things that aren't holes, and the
application status being "complete" might block for substitution of an
introduction. This fixes a bug in the interactive prover and the
interactive elaborator where introduction only worked when precisely the
same name was provided, becuase it was incompletely substituted.
2015-08-25 15:51:54 -07:00
David Raymond Christiansen
29e29c20bf Add letbind to Elab reflection 2015-08-25 12:40:03 -07:00
David Raymond Christiansen
ce764bf33f Split Tactics.intro into two versions
Most uses in my real code called the (Just n) variant, and this was
needlessly noisy. Now, the surface API just takes a name, and there's an
alternate version to figure out the name.
2015-08-25 12:20:21 -07:00
Jan de Muijnck-Hughes
9202fa1c76 Fix links 2015-08-25 17:17:11 +01:00