Commit Graph

6523 Commits

Author SHA1 Message Date
Edwin Brady
dccd0721a7 Update quasiquoute001 output
This appears to depend on definition ordering in libraries - TCon tag
can change.
2015-08-14 11:52:31 +01:00
Edwin Brady
bddc058df6 (Temporary) remove hasValidIBCVersion check
In Chaser.hs - it appears to be breaking reloading in vim, making
interactive mode not work a lot of the time, and until someone works out
why it seems best removed...
2015-08-14 11:52:31 +01:00
Edwin Brady
29240790ba Remove proofs from List.zipWith and friends
Given that lists don't have any length invariants in their type, it
suggests that we don't care about their lengths except for totality
purposes, so these proofs merely get in the way of perfectly valid uses
of zipWith.

Resolves #2517
2015-08-14 11:52:31 +01:00
David Christiansen
f25def1573 Merge pull request #2525 from david-christiansen/directory-1.2.3.0-blacklist
Blacklist directory 1.2.3.0
2015-08-13 22:55:20 -07:00
David Raymond Christiansen
cfa1522c0e Blacklist directory 1.2.3.0
This is to work around an issue with directory on older GHCs.

See https://github.com/haskell/directory/issues/30
2015-08-13 21:51:09 -07:00
Edwin Brady
8205c13489 Remove tactic proofs from List
Replaced with inline rewriting
2015-08-12 22:28:44 +01:00
Edwin Brady
e2b14272f7 Remove tactic proofs in Nat
Replaced with inline rewrites
2015-08-12 22:28:44 +01:00
Edwin Brady
6e7c036b13 Allow single constructor types in proof search 2015-08-12 22:28:44 +01:00
David Christiansen
65f49450e3 Merge pull request #2516 from david-christiansen/issue/2512
Fix indentation in PCAF parser
2015-08-12 14:00:08 -07:00
David Raymond Christiansen
13adf74505 Fix indentation handling for PCAF parser
Fixes #2512.
2015-08-12 11:13:46 -07:00
David Raymond Christiansen
a660919934 Better failure on indentation stack underflow 2015-08-12 10:45:28 -07:00
raichoo
650d3dda18 Merge pull request #2514 from raichoo/master
javascript: tweak event scheduling
2015-08-12 19:02:21 +02:00
raichoo
9b5a218a70 javascript: tweak event scheduling
Events get scheduled way to often which results
in a dramatic performance penalty. Making the
time slices bigger counteracts that.
2015-08-12 16:02:42 +02:00
raichoo
f05199f6e1 Merge pull request #2513 from raichoo/master
javascript improvements
2015-08-12 03:32:37 +02:00
raichoo
4a1d77ec10 javascript: enable more tests 2015-08-12 02:40:43 +02:00
raichoo
b26d401a04 javascript: add LReadStr primitive to node backend 2015-08-12 02:08:06 +02:00
raichoo
f7d97069f5 javascript: free memory in i$valstack properly 2015-08-12 00:57:20 +02:00
raichoo
ac7c313fe6 javascript: schedule continuation every 1000 calls
using stdout with node has a curious side effect. It
allocates memory that will only be reclaimed after
a new event has been scheduled. Therefore we set
a timeout every 1000 calls that will execute the
remaining code.
2015-08-12 00:49:28 +02:00
Edwin Brady
8c283520f3 Some Prelude reorganisation
Added Prelude.Interactive, for the I/O things, including some
convenience functions for starting simple looping interactive programs,
which involved adding Prelude.File too, and moving getArgs to the
Prelude.

Removed a no longer relevant test.
2015-08-10 00:45:40 +01:00
Edwin Brady
6f904d5adf Fix tests due to name change 2015-08-09 16:34:49 +01:00
Edwin Brady
bf6c327105 Allow mutually recursive records
Fixes #2248. The record type can be used anywhere in the mutual block,
but not the projections which are considered part of the definition.
2015-08-09 16:34:49 +01:00
Edwin Brady
57ba18dafb Slightly relax check for proofsearchability
Allow proof search on anything with constructors in the indices.
Even this isn't particularly accurate, so we really need to come up with
a proper rule, but it does lead to the expected result more often than
either trying everything, or ruling out overlapping types.
2015-08-09 16:34:49 +01:00
Edwin Brady
7a5392d414 Display tweak 2015-08-09 16:34:49 +01:00
Jan de Muijnck-Hughes
cd0528a3d6 Merge pull request #2504 from jeremy-w/jeremy-w/testing-fixes
Update testing section of tutorial
2015-08-09 13:32:12 +01:00
Jeremy W. Sherman
056b307e7d Update running text to match code change
Forgot to update the description of what was printed on success
when I updated what was printed on success in both the code and the sample
output.
2015-08-08 15:10:01 -04:00
Jeremy W. Sherman
118d718a62 Restores self-documenting test output
Thanks @jfdm!
2015-08-08 15:06:42 -04:00
Jeremy W. Sherman
6411f5d2f2 Add example of running the tests
This lets the reader get the full experience of the example
and also shows the temporary file path by way of the type-checker output.

This does change the success/failure reporting text to match what I had
written, so I could copy verbatim from my terminal.

The previous success/failure messages had mismatched capitalization
(title case vs sentence case), but their verbosity might have been desirable
for a tutorial, however undesirable verbosity might be when scanning
test output.
2015-08-08 14:42:50 -04:00
Jeremy W. Sherman
b8808681d6 Fix testing example .ipkg syntax
Running it as it was written previously gave a couple errors:

    > idris --testpkg maths.ipkg
    Uncaught error: user error (maths.ipkg:1:1: error: expected: "package"
    module maths
    ^            )

    > idris --testpkg maths.ipkg
    Uncaught error: user error (maths.ipkg:3:1: error: expected: "executable",
        "libs", "main", "makefile",
        "modules", "objs", "opts",
        "sourcedir", "tests"
    module = Maths.NumOps
    ^                     )
2015-08-08 14:33:03 -04:00
Jeremy W. Sherman
b85b98f0d9 Caption code block with relative file paths
Even though I had read the ipkg section before this, it was not clear to me
that I needed to mirror the module structure on-disk in the directory
hierarchy. Providing this info to the reader removes that chance for confusion.
2015-08-08 14:28:01 -04:00
Jeremy W. Sherman
d1e9bf86c8 Rephrase intro to testing tutorial
Add verbiage to make clear that the test framework does no aggregration or
reporting in and of itself.
2015-08-08 14:24:13 -04:00
Niklas Larsson
030da056bc Merge pull request #2495 from BlackBrane/master
Remove spurious Data.Fin imports (now reexported by Vect)
2015-08-06 18:09:37 +02:00
Niklas Larsson
6784f7a65c Merge pull request #2376 from jfdm/logging-effect
Effectful Logging.
2015-08-06 18:09:15 +02:00
Jan de Muijnck-Hughes
44dad1c45e Fixed missing entry in Cabal file. 2015-08-05 22:08:21 +01:00
Jan de Muijnck-Hughes
99b8194f09 Fix access for file and cabal files. 2015-08-05 22:07:51 +01:00
BlackBrane
afe9481871 Make clear that sum' is a synonym for concat 2015-08-03 14:02:34 +02:00
Edwin Brady
b6c9ef8334 Small documentation updates 2015-08-03 01:25:09 +01:00
BlackBrane
44ca9c2d6a Remove spurious Data.Fin imports (now reexported by Vect) 2015-08-02 19:49:43 +02:00
Edwin Brady
5a08c2cdb7 Proof search tweak
When checking types of hints, don't consider the recursive call as an
overlapping constructor type, or lots of things don't get filled in
which should be.
2015-08-02 14:36:06 +01:00
Edwin Brady
96e9b1a79e Variable names in makelemma types
Put the variable names even if they aren't used, so that it's clearer
which is which at the definition site.
2015-08-02 14:36:06 +01:00
Niklas Larsson
a8f3171d56 Merge pull request #2494 from uwap/master
Make --mkdoc follow the sourcedir
2015-08-02 13:58:04 +02:00
uwap
61f02bfee1 Make --mkdoc follow the sourcedir
If you had an ipkg with a sourcedir defined before using the --mkdoc option would fail saying that some source files are missing.
This is because it didn't follow the sourcedir.
2015-08-02 02:50:57 +02:00
Edwin Brady
7095d6c1ed Proof search should only use user visible names
If they are implicits or class arguments, it's fine for 'auto' to see
them since they're only used internally, but interactive proof search
will give odd results if it uses them. So, we make a list of names which
proof search in interactive mode is allowed to use.
2015-08-01 21:12:14 +01:00
Edwin Brady
8dd2a7f078 Make interactive proof search less enthusiastic
Instead of guessing, it will only fill in a metavariable if all of the
available constructors/hints have disjoint types. This means you'll no
longer always get 'Nothing' for Maybe or '[]' for List, but rather
you'll get a new metavariable.

'auto' behaves as before, because the idea there is to find any old
thing with the right type.

It feels like interactive proof search should be a bit more refined,
though, because the idea of that is to find the program you really want,
rather than any old program...

More refinements to this are likely, for example refusing to fill in
with locals if there are clashing types.
2015-08-01 15:57:30 +01:00
Edwin Brady
a4596d92b8 Tidy up 'tidy'(!)
Normalise the return type as well as th arguments.
2015-08-01 15:57:30 +01:00
Edwin Brady
0f80f562a0 Don't want newline after makeCase 2015-08-01 15:57:30 +01:00
Niklas Larsson
2c7563c4e3 Merge pull request #2492 from BlackBrane/master
Refinement & reorganization of Data.Matrix
2015-08-01 15:50:43 +02:00
BlackBrane
d649f2e228 Separate numeric/algebraic matrix ops from basic matrix functions 2015-07-31 17:56:08 +02:00
Niklas Larsson
546458e0d6 Merge pull request #2491 from ziman/ffi-fix
Make `FFI_Exportable` usable with other back-ends
2015-07-31 13:12:26 +02:00
Matus Tejiscak
098656e423 Make FFI_Exportable more generic. 2015-07-31 00:50:03 +01:00
Niklas Larsson
d05f550dc9 Merge pull request #2487 from uwap/patch-1
Fix documentation for distributivity of rings
2015-07-30 22:13:29 +02:00