Commit Graph

11 Commits

Author SHA1 Message Date
Niklas Larsson
b5a6637da8 Rename expected, input and run
Because cabal's wildcards are broken and doesn't allow
files without file endings.
2020-01-25 01:44:54 +01:00
David Christiansen
f754d9c1b6 Purify Idris of "return"
* Deprecate "Monad.return" in favor of "pure"
* Update all included libraries to use "pure"
* Update internal code generation to remove "return"
* Remove unused AST constructor PReturn
* Update tests
2016-08-27 08:26:45 -04:00
Edwin Brady
8442ceff46 Deprecate '%assert_total'
This is for two reasons:

1. It is error prone, because if you edit the function, the reason for
assertion may no longer be valid, but it's no longer checked. Better to
be precise about why a function is asserted total using a combination of
assert_total, assert_smaller and (new) assert_unreachable

2. It is a very tedious maintenance burden.

Reason 1 is the good reason. Reason 2 is why I actually did this.
2016-06-18 16:17:49 +01:00
Edwin Brady
b92f7acadf New implementation of rewrite
Not using the 'rewrite' tactic any more, but building an application of
a rewriting lemma with a predicate directly. This allows a new syntax:

rewrite [rule] using [rewrite_lemma] in [scope]

Where rewrite_lemma is any function of the right shape, so can be a
function used to rewrite dependent types rather than the default, which
is rewrite__impl.

More to do: the rewrite_lemma could be generated automatically for many
dependent types, also the predicate building needs a bit of polish, but
this already works for, e.g., rewriting vector functions.
2016-04-03 19:08:53 +01:00
Niklas Larsson
ccf44ed9e1 Change expected for primitives006 2016-03-02 22:09:32 +01:00
Niklas Larsson
08f3a5ba04 Fix order of init in MKCDATA/c
The creation of the item could cause a collection making the pointer to the closure invalid.

Also, make the test slightly gentler to stop it from exhausting the default stack size on Windows.
2016-03-02 10:11:18 +01:00
Matus Tejiscak
53fb0b0b86 Pointless change to make Travis re-run tests. 2016-02-18 00:39:09 +00:00
Matus Tejiscak
3f3da2573b Touch buffers at offset 63M instead of 0. 2016-02-12 15:57:45 +00:00
Matus Tejiscak
b6449de167 Fix test runner. 2016-02-12 14:39:08 +00:00
Matus Tejiscak
85fde4ce6b Update export qualifiers. 2016-02-12 10:45:48 +00:00
Matus Tejiscak
62d6916eac Bump test number. 2016-02-12 10:21:52 +00:00