Commit Graph

551 Commits

Author SHA1 Message Date
Andreas Reuleaux
c193a40710 adjust test totality003 with --consolewidth for use with -f curses 2015-03-19 17:44:50 +00:00
Andreas Reuleaux
d9482ae69d adjust test totality002 with --consolewidth for use with -f curses 2015-03-19 17:33:42 +00:00
Andreas Reuleaux
6bac17b37d adjust tests with --consolewidth for use with -f curses 2015-03-19 17:24:36 +00:00
Andreas Reuleaux
8ab6beac57 Merge remote-tracking branch 'upstream/master' into issue2004 2015-03-19 16:50:54 +00:00
Andreas Reuleaux
5de1cd81dc adjust tests with --consolewidth for use with -f curses 2015-03-19 16:50:50 +00:00
Edwin Brady
f4aaf01b34 Guard !! in forgetEnv
This means we get better error messages if there are scoping issues,
particularly as caused by 'where' clauses with missing types that can't
be inferred.

Fixes #1978
2015-03-19 16:23:43 +00:00
Andreas Reuleaux
174395b22c Merge remote-tracking branch 'upstream/master' into issue2004 2015-03-19 15:36:23 +00:00
Andreas Reuleaux
a5e76fc00a adjust tests with --consolewidth for use with -f curses 2015-03-19 15:36:18 +00:00
Andreas Reuleaux
9cfd0c2025 adjust test with --consolewidth for use with -f curses 2015-03-19 14:57:21 +00:00
Andreas Reuleaux
d0a9beb12e adjust tests with --consolewidth for use with -f curses 2015-03-19 14:42:12 +00:00
Edwin Brady
15737d9c4b Trickiness with implicits in dependent classes
Need to expand implicits for methods in the dictionary declarataion, but
not quite the same way as for the top level function of the same name
(i.e. need to leave out the dictionary itself).

Fixes #1975
2015-03-19 12:56:05 +00:00
Andreas Reuleaux
73da7d472c adjust tests with --consolewidth for use with -f curses 2015-03-19 12:26:17 +00:00
Andreas Reuleaux
7a91805bd6 adjust test with --consolewidth for use with -f curses 2015-03-19 12:00:47 +00:00
Andreas Reuleaux
62419f47ad set console width / adjust tests by using --consolewidth to make them work with the curses flag 2015-03-19 11:50:39 +00:00
Andreas Reuleaux
b989e3661f dead code: renderWidth nowhere used 2015-03-18 19:03:35 +00:00
Andreas Reuleaux
aa338657cc Merge remote-tracking branch 'upstream/master' into issue2004 2015-03-18 09:55:54 +00:00
Andreas Reuleaux
1bf27316b5 issue #2004 resolved by --consolewith cmd line param 2015-03-18 09:55:37 +00:00
David Raymond Christiansen
361efb574e Merge remote-tracking branch 'refs/remotes/upstream/master' into wip/tactical 2015-03-18 01:19:58 +01:00
Edwin Brady
147149b432 Add 'determining parameters' for classes
Also fix resolution rules so that determining parameters, in *all cases*
except Num instances (for defaulting to Integer), must not be
metavariables.

Syntax is:

class Foo a b c | a, b

the optional | a, b lists the determining parameters. When resolving
Foo, a and b must not be metavariables. c can be a metavariable (and
hence solved by type class resolution).

The overlapping instance check now only looks at determining parameters,
so, for example, for Foo the following instances would be considered
overlapping:

instance Foo Int Nat Bool
instance Foo Int Nat String
2015-03-17 23:54:45 +00:00
David Raymond Christiansen
c2dc6ec7dd Allow new-style tactics to declare function signatures
Docs forthcoming.
2015-03-17 21:22:03 +01:00
David Raymond Christiansen
a39fef32c1 Merge branch 'fix/print-semantics' of https://github.com/jfdm/Idris-dev into jfdm-fix/print-semantics
Conflicts:
	CHANGELOG
2015-03-17 11:10:05 +01:00
Edwin Brady
01c4f2a39c A bit more unification error provenance 2015-03-16 19:39:48 +00:00
Edwin Brady
179c704362 Record provenance of types in 'fill' errors
This covers unification errors arising from variables and function
applications (which is a lot of them)
2015-03-16 18:27:19 +00:00
Adam Sandberg Eriksson
54fb787ac1 Documentation for provided postulates 2015-03-15 15:16:12 +01:00
David Christiansen
ad2f1864e4 Merge pull request #2000 from david-christiansen/better-fin-error
Better Fin error
2015-03-15 12:17:11 +00:00
David Raymond Christiansen
c6661660ad Improve Fin error rewriter to remove "fromInteger"
"fromInteger" now never shows up in the errors, at least not applied to
an Integer constant.
2015-03-14 22:27:29 +01:00
David Raymond Christiansen
d3649824df Improve rewriter for Fin.fromInteger
It now offers different errors when it couldn't prove the lemma due to
having a variable for the Integer, or when it couldn't prove it due to
having concrete values that are directly incorrect.
2015-03-14 20:20:44 +01:00
Adam Sandberg Eriksson
6fe15ea096 Allow type providers to have docstrings 2015-03-14 01:18:32 +01:00
Adam Sandberg Eriksson
ccc2af014a instance docs: rename testcase 2015-03-13 22:46:21 +01:00
Adam Sandberg Eriksson
9bc0b4a79e Instance docs: fix test case 2015-03-12 11:54:51 +01:00
Adam Sandberg Eriksson
7ba4da0013 Instance docs: instance parameter documentation 2015-03-11 22:17:39 +01:00
Adam Sandberg Eriksson
8855d2503b Instance docs: align instance doc with member doc 2015-03-10 10:48:31 +01:00
Adam Sandberg Eriksson
75bf0d8242 Instance docs: simplify test case 2015-03-10 10:43:43 +01:00
Adam Sandberg Eriksson
540f817cc4 Instance docs: add one test case 2015-03-09 18:01:51 +01:00
Edwin Brady
e9c96d40c4 Add test for FFI export (ffi006) 2015-03-07 22:09:52 +00:00
Jan de Muijnck-Hughes
ec617e8f06 Updated changelog 2015-03-06 17:26:33 +00:00
Jan de Muijnck-Hughes
5ea6aa0520 Address semantic differences in putting things to STDOUT.
The changes are as follows:

+ `print` is for putting showable things to STDOUT.
+ `printLn` is for putting showable things to STDOUT with a new line
+ `putCharLn` for putting a single character to STDOUT, with a new line.

Effects has been updated accordingly.
2015-03-06 17:26:33 +00:00
David Raymond Christiansen
29553b639a Prevent unquotations from being parsed as infix operators 2015-03-05 16:22:51 +01:00
David Raymond Christiansen
a1c42ad4c9 Add "rewrite" to new-style tactics 2015-03-02 22:02:36 +01:00
David Raymond Christiansen
c70b2a310a Merge branch 'feature/betteroperatormessage' of https://github.com/ahmadsalim/Idris-dev into ahmadsalim-feature/betteroperatormessage
Conflicts:
	test/reg050/expected
2015-03-02 16:02:41 +01:00
David Raymond Christiansen
3c05bcd075 Merge branch 'dsl_varnames' of https://github.com/chetant/Idris-dev into chetant-dsl_varnames 2015-03-02 12:42:33 +01:00
David Raymond Christiansen
6f25fbe6cc Update reg050 for <$> as fmap alias 2015-03-02 11:28:04 +01:00
David Raymond Christiansen
48d6a6bcf9 Update for renamed operators 2015-03-02 10:57:06 +01:00
Tenor Biel
b5f2e4df50 Changed test expectations to support new Prelude operators 2015-03-02 10:08:41 +01:00
Tenor Biel
44bdf1dd40 Changed (<$>) to (<*>) 2015-03-02 10:08:22 +01:00
Chetan Taralekar
3b5790caf9 Named lambda,let,pi in dsl block 2015-03-01 22:34:17 -06:00
Ahmad Salim Al-Sibahi
ef906d30a0 Fixed test error due to improved error message (the test had expected the old
message)
2015-03-01 20:44:28 +01:00
David Raymond Christiansen
5f2a3b5d20 Simplify comment parser
Since we no longer have special documentation comments, the comment
parser can be much simpler. The simpler version also works better - it
fixes #1958.
2015-02-27 14:32:02 +01:00
Ahmad Salim Al-Sibahi
dcbab5e67b Fixed failing regression test due to new syntax extension rules 2015-02-24 21:42:00 +01:00
David Raymond Christiansen
f327f18528 Raw quasiquote patterns
Now, Raw terms can be quasiquoted in a pattern context.
2015-02-21 09:38:33 +01:00