Commit Graph

631 Commits

Author SHA1 Message Date
Ahmad Salim Al-Sibahi
0cae95a59f Removed equality from primNames, as it shouldn't be handle specially when adding implicits (the only current use). 2015-05-10 18:20:44 +02:00
Edwin Brady
23b36dabbb Remove mysterious files in test/basic001 2015-05-08 18:08:57 +01:00
David Raymond Christiansen
12bcfe4296 Allow type classes to have explicitly-named instance constructors 2015-05-08 12:30:00 +02:00
David Raymond Christiansen
c538c346cd Merge remote-tracking branch 'refs/remotes/upstream/master' into agda-style-records
Conflicts:
	src/Idris/ParseHelpers.hs
2015-05-06 18:25:43 +02:00
David Raymond Christiansen
90127b39c4 High-level if ... then ... else ... expression
Now, conditionals are implemented by the compiler rather than a
library. This gives better error messages and more readable output, at
the cost of more Haskell and less Idris.

Also, boolElim is renamed to ifThenElse for consistency with other
languages that support overloading of conditional expressions (GHC
Haskell and scala-virtualized) and to reflect that things other than
Booleans will be eliminated by overloadings.
2015-05-06 15:44:02 +02:00
David Raymond Christiansen
274b6b1366 Fix test bitrot 2015-05-05 21:04:06 +02:00
David Raymond Christiansen
c1cd201572 Merge remote-tracking branch 'refs/remotes/upstream/master' into agda-style-records
Conflicts:
	src/Idris/AbsSyntaxTree.hs
	src/Idris/Elab/Record.hs
2015-05-05 20:36:51 +02:00
Markus Pfeiffer
0aa5d53271 Remove buffer test 2015-05-05 00:23:38 +01:00
David Raymond Christiansen
f09605b3dd Require unique global names in TT
Fixes #2217 by demanding that global names in TT terms be
unambiguous. The elaborator will always produce them that way, but user
elab scripts might not, which led to confusion.

Also, disentagle 'apply' and 'fill'.
2015-04-30 12:40:36 +02:00
David Raymond Christiansen
8ab1ac6c29 Richer universe error objects
Now, they are reported using the standard infrastructure.
2015-04-28 12:01:41 +02:00
Edwin Brady
d1941f50d3 Fix bug with Type*/AnyType in data decls
(Type* now deprecated and replaced with AnyType). If an AnyType is a
parameter of a type, the type itself must be an AnyType otherwise we
might be able to duplicate a unique thing by mistake.
2015-04-26 14:41:55 +02:00
David Raymond Christiansen
28e2668206 Add reasonable tests for elaborator reflection 2015-04-23 23:18:44 +02:00
David Raymond Christiansen
4b7c132dfb Test update for data def/mutual block fix 2015-04-22 22:37:18 +02:00
David Raymond Christiansen
83c2728cab Update test for changed mutual block and datatype behavior 2015-04-22 17:17:23 +02:00
David Raymond Christiansen
d6458bb2df Add `{n} for quotations of the global name n 2015-04-22 16:19:55 +02:00
David Raymond Christiansen
6f30060ede Don't look for the parameters of bound variables.
Fixes #2130.
2015-04-20 11:41:56 +02:00
identical snowflake
387046aa4b added test for divNat optimization 2015-04-18 00:29:55 +03:00
Niklas Larsson
c308d09f4a Delete folding002 test.
It tested for tailcalls that have been removed.
2015-04-16 21:21:09 +02:00
Edwin Brady
5269289f13 folding002 isn't really appropriate now
Since the library definition of List was simplified to be not tail
recursive in #2088
2015-04-16 11:39:05 +01:00
David Christiansen
1dfbb72954 Merge pull request #2149 from david-christiansen/wip/tactical
Integrate ongoing work on elaborator reflection
2015-04-15 13:42:50 +02:00
David Raymond Christiansen
6c7c8870b2 Update indentation in test 2015-04-15 12:15:56 +02:00
Edwin Brady
3a43ccc488 Merge pull request #2108 from Heather/sandbox_path
runtest.pl : fix error when there is no sandbox
2015-04-14 20:12:10 +01:00
Edwin Brady
f6414691de Merge pull request #2143 from soimort/getLine-inconsistency
Fix getLine inconsistency
2015-04-14 20:10:50 +01:00
Mort Yao
c9a05f4d5a Update tests to reflect the change of idris_readStr 2015-04-14 15:11:03 +08:00
David Raymond Christiansen
f1c6e39dba Merge remote-tracking branch 'refs/remotes/upstream/master' into wip/tactical 2015-04-10 10:17:10 +02:00
Niklas Larsson
68d844cdf8 Added a test for bignums 2015-04-10 09:49:28 +02:00
David Christiansen
bedca84d6f Merge pull request #2106 from melted/great_expectations
Don't require expect for tests with timeouts
2015-04-09 16:21:35 +01:00
David Christiansen
dbc767bf8d Merge pull request #2110 from melted/variable_expectations
Make a mechanism for os-dependent output of tests
2015-04-09 16:20:28 +01:00
David Raymond Christiansen
c3def79a99 Rename Tactical to Elab 2015-04-08 10:46:57 +02:00
sualitu
8e112d79ee Added tests 2015-04-06 12:16:57 +02:00
Edwin Brady
46c3081179 Disable effects004 on js tests
JS back end doesn't implement LReadStr primitive
2015-04-05 22:27:46 +01:00
Edwin Brady
e9e74a664f Forgot to commit effects004 2015-04-05 21:31:01 +01:00
Edwin Brady
c3cdb9c465 Trying a new Effects api
Changes:
- Eff has become EffM, parameterised over (m : Type -> Type), which will
  allow us to introduce new effects later, though not currently used
- Eff itself is now a collection of type synonyms which build an EffM.
  It can take either one list of effects, a list of input and output
  effects, or a list of effects and a function to compute output
  effects; disambiguated by context
- EffT is as Eff, but takes the underlying 'm'
- Added 'sig' function for giving effect signatures.

All of the above mean we no longer need the {} syntactic sugar, though
it's still there. Old effect programs (should!) work with no or minimal
changes.
2015-04-05 17:42:54 +01:00
Niklas Larsson
c47608d968 Don't require expect for tests with timeouts
Turns out there's a timeout command in core utils that is
convenient.

Fixes basic010 and reg039 on Windows.
2015-04-03 17:38:42 +02:00
David Christiansen
03c2672d76 Merge pull request #2097 from melted/fix_ffi006
Don't hardcode 'cc' as the compiler
2015-04-03 13:57:59 +02:00
Niklas Larsson
a6475a2093 Make a mechanism for os-dependent output of tests
Fixes interactive007 on Windows.
2015-04-03 13:45:03 +02:00
Edwin Brady
5d269e39d1 :exec can take an expression as an argument
This compiles the expression and evaluates it. It will either print the
expression (if its type is an instance of Show) or run it (if its type
is IO ()), or give an error otherwise.
2015-04-03 11:48:04 +01:00
Heather
d2bcf5da0a runtest.pl fix error when there is no sandbox 2015-04-03 11:28:01 +04:00
Niklas Larsson
e643ef61ad Don't hardcodee 'cc' as the compiler
Fixes ffi006 on windows
2015-04-03 01:04:24 +02:00
David Christiansen
7871ecbe26 Merge pull request #2096 from melted/win_test
Make reg029 pass on Windows
2015-04-02 08:19:23 +02:00
Niklas Larsson
1592354e56 Make reg029 pass on Windows 2015-04-01 21:18:37 +02:00
Niklas Larsson
8cc2312715 Don't let tests depend on colouring. 2015-04-01 20:50:06 +02:00
David Christiansen
663c401154 Merge pull request #2094 from david-christiansen/no-type-checking-message-quiet
Make --quiet imply non-verbosity
2015-04-01 19:02:09 +02:00
David Raymond Christiansen
6c4553c31f Make --quiet imply non-verbosity
This causes Idris to not emit messages about "Type checking ...." while
in quiet mode, which improves the portability of tests to Windows (due
to the slash facing the other way there). It also makes tests a bit more
robust with regards to their source files changing names.
2015-04-01 17:48:17 +02:00
sualitu
9c13628838 Merge branch 'master' into agda-style-records 2015-04-01 15:35:11 +02:00
Niklas Larsson
9f5fb0823c Need to wrap PATH in quotes to avoid chars being interpreted as shell
Notable on windows where it is likely there is a directory with
parantheses in the name.
2015-04-01 15:33:00 +02:00
sualitu
26dba597f7 Merge 2015-03-31 21:06:34 +02:00
David Raymond Christiansen
73795745e0 Fix test/proof009 when Curses is enabled 2015-03-31 12:33:15 +02:00
David Raymond Christiansen
a13b22ca9d Merge branch 'lambda-impossible' of https://github.com/Melvar/Idris-dev into Melvar-lambda-impossible 2015-03-31 11:24:23 +02:00
Edwin Brady
13a36a3d32 Annotate functions as %hint for auto search
This allows extra hints, as well as constructors, to guide proof search
for auto implicit arguments.
Added test proof010 which shows how this works to simulate type classes
with overlapping instances (and consequently no injectivity restriction
or assumption)

%hint only works on functions which return an instance of a data type.
Proof search exhaustively searches hints and constructors, so use with
care especially when adding lots of recursive or overlapping hints.
2015-03-29 21:24:04 +01:00