Commit Graph

511 Commits

Author SHA1 Message Date
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
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
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
d649f2e228 Separate numeric/algebraic matrix ops from basic matrix functions 2015-07-31 17:56:08 +02:00
Edwin Brady
64df5f649b Added WHNF module
Reduction to weak head normal form. Currently includes structure of the
algorithm, but does not yet reduce function names.

Also removed ':hnf' from REPL commands and replaced with ':whnf'.
2015-07-24 01:45:38 +01:00
David Christiansen
ca623ceee4 Merge pull request #2444 from Melvar/add-divmod
Add inductive divMod to contrib
2015-07-18 11:15:19 +02:00
Edwin Brady
5da0d60564 Faster processing of alternatives
Mostly by delaying the expensive checking for uniqueness of names until
the point where we actually need the branch, thus removing a significant
amount of unnecesary work.
2015-07-17 20:56:55 +01:00
Melvar Chen
bcfced2167 Add inductive divMod to contrib, move the wellfounded one 2015-07-17 21:11:09 +02:00
Niklas Larsson
9a3735d950 Remove dependency to zlib 2015-07-12 18:08:15 +02:00
David Raymond Christiansen
012b8984db Fix quasiquotes of Raw bindings
Some old hard-codings of TT survived when they shouldn't have. This
makes the system more polymorphic.

Fixes #2425.
2015-07-09 15:51:14 +02:00
Leif Warner
def8a1ddd6 Bump some upper bounds on deps to build w/ stackage-nightly
I assume this should also build with previous versions of stackage,
given these constraints.
Also, xml was only used by the Java backend to make pom.xml files.
2015-07-07 11:24:43 -07:00
Jan de Muijnck-Hughes
ff5b2308fa Fixes to Logging effect 2015-07-05 14:43:53 +01:00
Jan de Muijnck-Hughes
59f7f9829f Effectful Logging.
Two logging effects with appropriate tests and documentation have been added.
These effects provide:

1. A Simple logger that provides logging in effectful functions based
   on numerical levels of verbosity.
2. A more advanced logger that adds categorisation of logging statments in
   addition to levels.
2015-07-05 14:43:53 +01:00
David Raymond Christiansen
e9e7993e47 Replace absurd syntax rule FCs
Previously, FCs coming from syntax rules would keep the FCs of their
definition context. Now, after expanding a syntax rule, the FCs that
aren't contained in the region in which the syntax was expanded are
replaced by a reference to the present file.

This does not give a precise source location - that runs the risk of
generating false highlighting information - but this solution at least
places the error in the right file, and the "While elaborating ..." bit
can be used to find the error. We should probably get better at
separating the highlighting-relevant FCs from the
highlighting-irrelevant FCs in the future.
2015-06-18 22:27:46 +02:00
David Raymond Christiansen
5542d1cfc5 Add maximum pretty-printer depth option.
The default is set to a high but finite number, so that accidentally
evaluating infinite things doesn't cause Idris to hang.

Fixes #2333.
2015-06-03 18:44:15 +02:00
Heather
e1c3a0b0bb bump lens dependency
works fine with 4.11
2015-05-29 17:40:44 +04:00
Niklas Larsson
0dd0d3bcf4 Obey the user's optimization setting
Clearly there are use cases requiring a lower optimization setting, so let the user decide via config or flag like before. Rather than hard-coding either hig or low optimization.
2015-05-27 13:17:16 +02:00
David Christiansen
473d7c24d1 Set default GHC flags to -O1
-O2 causes massive memory consumption while compiling Idris. In particular, GHC 7.8.4 needs more than four gigabytes of RAM to compile Elab.Term with -O2, which rules out Idris installation for many machines and causes Travis builds to terminate.
2015-05-27 11:14:38 +02:00
Edwin Brady
f75980a67d Update version number 2015-05-24 23:23:20 +01:00
raichoo
725989242f Merge pull request #2308 from raichoo/master
Turn on -O2 in idris.cabal
2015-05-24 00:21:13 +02:00
David Christiansen
22c8cda085 Merge pull request #2315 from david-christiansen/text-binary
Use Text's own Binary instance
2015-05-23 11:40:55 +02:00
David Raymond Christiansen
11266fb783 Use Text's own Binary instance
Text has added a Binary instance upstream, so we can't define our own anymore.
2015-05-23 10:34:24 +02:00
raichoo
e1311a2baf remove stray tab character from idris.cabal 2015-05-21 23:03:34 +02:00
raichoo
a4b8b0f99a turn on optimizations (-O2) in cabal 2015-05-21 23:03:13 +02:00
David Raymond Christiansen
9d295be047 Fix dictionary arguments in dependent type class methods
Type class methods references were previously elaborated using the
ordinary function call elaboration, but their class isn't yet available
when the method lookup function is elaborated. This leads to a "can't
resolve type class" error on the type class definition.

Now, they have an explicit dictionary argument inserted, pointing at the
dictionary that's used for the type of the method whose signature they
appear in.

Fixes #2302.
2015-05-20 11:23:03 +02:00
Edwin Brady
5b73dcbde1 Fix the broken 'Exact' versions of lookups
Instead of checking there's exactly one result, they must check that one
of the (possibly many) results is the exact name they were looking for,
since some things may be unqualified and will be returned anyway.

Fixes #2271 (again; test for disambig001 and disambig002 added)
2015-05-18 10:33:33 +01:00
David Raymond Christiansen
2de8a47afa Send absolute file names in annotations
This makes it much easier for clients of the IDE protocol to make use of
namespace information.
2015-05-17 18:53:17 +02:00
Edwin Brady
3034fb619c Remove argument ordering hack in elaborator
This used to be needed because the elaborator wasn't good at going back
and patching up things that didn't work right, but now it just gets in
the way and causes all sorts of other problems. This tidies up
elaboration/unification a bit more.
2015-05-17 00:46:16 +01:00
Edwin Brady
f79455e22a Update version number 2015-05-17 00:46:16 +01:00
David Raymond Christiansen
56e83556f1 Fix elaboration of "with ... proof ..." clauses 2015-05-12 13:04:17 +02: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
443ee311c1 Add coinductive record tests to .cabal file 2015-05-05 22:49:00 +02:00
David Christiansen
69214abb9f Bump upper bound of lens
This makes it install more cleanly with newer libs.
2015-05-04 09:22:15 +02:00
Niklas Larsson
445f6a5911 Make PDirective IO monad free
This allows us to traverse the parse tree with generic functions.
And we leave a record of just what directives was in the file.
And it is now possible to serialize them.
2015-04-26 15:52:46 +02:00
David Christiansen
2a4b4a7670 Merge pull request #2140 from BlackBrane/new-alg
Fix Field definition and separate Lattice and VectorSpace modules from Algebra
2015-04-24 14:13:09 +02:00
David Raymond Christiansen
28e2668206 Add reasonable tests for elaborator reflection 2015-04-23 23:18:44 +02:00
Niklas Larsson
5cdefc5cf9 Merge pull request #2170 from melted/zip_ibc
Use zip as IBC container
2015-04-23 13:17:14 +02:00
Niklas Larsson
5d4ab14b82 Implement zip as the container used in IBC files 2015-04-22 23:46:36 +02:00
David Raymond Christiansen
d6458bb2df Add `{n} for quotations of the global name n 2015-04-22 16:19:55 +02:00
David Christiansen
53d5548e4e Merge pull request #2167 from david-christiansen/bump-pprint-bound
Bump bound for annotated-wl-pprint
2015-04-22 09:30:11 +02:00
David Raymond Christiansen
ab9a2bc760 Add a :browse command to the REPL and IDE equivalent
:browse NS lists the contents of the namespace NS, separated into
sub-namespaces and actual names.
2015-04-21 17:52:40 +02:00
David Raymond Christiansen
c279315c56 Bump bound for annotated-wl-pprint
This allows GHC 7.10 compatibility.
2015-04-20 19:09:34 +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
Niklas Larsson
4f4c993655 Merge pull request #2155 from identicalsnowflake/optimization
fix divNat segfaulting
2015-04-18 11:14:54 +02:00
identical snowflake
387046aa4b added test for divNat optimization 2015-04-18 00:29:55 +03:00
Niklas Larsson
d2e8625561 Add folding001 test to cabal 2015-04-16 23:16:55 +02:00
Edwin Brady
888338a0be Merge branch 'master' of github.com:idris-lang/Idris-dev 2015-04-14 20:05:20 +01:00