Commit Graph

6657 Commits

Author SHA1 Message Date
Edwin Brady
c10d5700bd Merge branch 'effLogging-updates' of https://github.com/jfdm/Idris-dev into jfdm-effLogging-updates
Conflicts:
	CHANGELOG
2015-09-06 18:55:01 +01:00
Edwin Brady
5be9e7cdb0 Fix parameter propagation
This can affect functions which use type synonyms. Fixes #2389
2015-09-06 18:11:52 +01:00
Edwin Brady
5f47887822 Combine a chunk of regxxx tests
Now reg001 contains lots of the tests which are only intended to check
whether some code type checks. More to do like this...
2015-09-06 14:52:50 +01:00
Edwin Brady
2f9d287d07 Implicit fix
If we normalise the goal type before coercion, we also need to check
against the normalised coercion type otherwise we might miss some valid
coercions. Fixes #2570
2015-09-06 13:52:21 +01:00
Edwin Brady
fcba396622 Coverage checker fix
Make sure it looks at all arguments - sometimes applications are nested
by the elaborator and these should be flattened. Fixes #2129
2015-09-06 13:28:57 +01:00
Edwin Brady
c931eff0ba Proof search improvements
Postpone failing searches rather than giving up immediately, since more
information (e.g. type class constraints) may be available when trying
later.

Also improves error reporting of postponed searches by recording what
was being elaborated at the time.

Fixes #2456
2015-09-06 12:48:52 +01:00
David Christiansen
dbe3887850 Merge pull request #2583 from GuglielmoS/update_contrib
Add myself as contributor
2015-09-05 15:40:17 -07:00
Guglielmo Fachini
c934905ac8 Add myself as contributor for #2373 and #2569 2015-09-05 22:39:47 +02:00
Edwin Brady
b1ce3cba39 Implement a form of pattern unification
This makes lots more things unify which previously didn't, including
dependent function composition.
2015-09-05 19:55:05 +01:00
David Raymond Christiansen
5c4598e9b1 Update CHANGELOG for record docs 2015-09-05 11:53:40 -07:00
David Christiansen
4b3c47754f Merge pull request #2569 from GuglielmoS/fix/master/2241
Fix #2241 by adding a customized display for records documentation
2015-09-05 11:32:47 -07:00
Edwin Brady
0fbfeab296 Improve pruning of alternatives
Make it aware of Delay/Lazy. This means it's now safe for pruning to
tell whether no alternative can succeed, thus speeding up detecting
failures.
2015-09-04 23:52:38 +01:00
Guglielmo Fachini
f5f662c8f8 Improve HTML generation for records documentation 2015-09-03 23:03:28 +02:00
Edwin Brady
0ed71c991d Fix primitives002
Spurious Data.Float imported didn't get caught on my machine due to
stray ibcs.
2015-09-03 21:52:50 +01:00
Guglielmo Fachini
3ec5b5cb1d Fix parameters documentation in the record's customized display 2015-09-03 21:34:41 +02:00
Edwin Brady
fe4d6d3e77 Move Data.Floats to Prelude.Doubles
It seems odd not to have these available by default
2015-09-03 19:53:22 +01:00
Edwin Brady
f7ccfb35ea Neg and Nat adjustments
Neg now means "Numbers with possible negative values" and the methods
which deal with negative numbrs (abs, - and negate) are now part of this
rather than Num.

This means, in particular, that - on Nat can now require a proof.
'minus' on Nat behaves as before (and the proofs use minus rather than
-).
2015-09-03 17:37:58 +01:00
David Christiansen
22ef96b21f Merge pull request #2574 from enolan/docs-typo
Docs cleanup
2015-09-03 08:06:41 -07:00
David Christiansen
ef2f67793f Merge pull request #2575 from kojiromike/patch-1
Typo fix
2015-09-03 08:02:07 -07:00
Michael A. Smith
a6395c2ff6 Typo fix 2015-09-02 19:34:33 -04:00
Echo Nolan
7f6f3c4693 Spelling in Sphinx documentation
Ran aspell over the documentation. Where there were conflicts between
American and British spelling, picked the British variant, as most of it
seemed to be written in that style. I don't really care, I'm American.
2015-09-02 14:59:03 -07:00
Echo Nolan
abac36e454 Remove stray *s in tutorial 2015-09-02 13:45:09 -07: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
Jan de Muijnck-Hughes
ed6441ad3e Updates and Fixes
+ Added new logging functions that take an explicit logging level and not just a natural number.
2015-08-27 11:57:00 +01:00
Jan de Muijnck-Hughes
9d5e011963 Fixed cabal indentation. 2015-08-27 10:14:55 +01:00