Commit Graph

755 Commits

Author SHA1 Message Date
Milan Kral
35757f928a
use HTTPS URL instead of HTTP URL when possible 2019-12-19 14:26:41 +01:00
lodi
bcb1c4e9cd updated ansi-terminal dependency to accept 0.9.x 2019-08-30 17:58:44 -04:00
Edwin Brady
9549d9cb9a Update version numbers ready for release 2019-07-22 12:09:06 +01:00
Jorge Acereda
4a8b9c22f0 Relax Cabal and zip-archive bounds 2019-01-11 21:42:58 +01:00
Jorge Acereda
0b669c7b9d Merge branch 'master' of https://github.com/jmorag/Idris-dev into megaparsec7 2019-01-10 19:08:28 +01:00
Niklas Larsson
dc240d6ad3 Fix network bounds
Fixes #4612
2018-12-11 21:41:48 +01:00
Joseph Morag
ca34dec7c3 Bump megaparec versions in idris.cabal and stack.yaml 2018-12-10 11:28:19 -05:00
Leif Warner
2de0c8f1c3 Allow newer version of aeson and containers. 2018-12-09 04:11:00 -08:00
Felix Yan
a1c7940483
Allow code-page 0.2 2018-11-16 23:28:03 +08:00
Edwin Brady
1510fce923 Update version number 2018-10-23 10:18:14 +01:00
Niklas Larsson
a09c705a3f Add an upper bound on megaparsec
Megaparsec has redone how the source positions in
errors are handled in an incompatible way.

Fixes #4551
2018-09-05 20:02:00 +02:00
Niklas Larsson
332df52c26 Remove use of deprecated network functionality 2018-08-19 17:52:01 +02:00
Niklas Larsson
7f196649e8
Raise aeson bound
Fixes #4493
2018-07-01 12:27:49 +02:00
Edwin Brady
61cf812e97 Update version number 2018-05-26 17:55:45 +01:00
Joomy Korkut
b8f34d1d9a Bump to LTS 11.3 and fingertree-0.1.4.1 2018-04-07 23:00:42 -04:00
Ryan Scott
ff5322d578 Allow building on GHC 8.4.1 2018-03-30 10:44:46 -04:00
Jorge Acereda
f351735f70 stack test --nix should work now 2018-03-01 19:09:05 +01:00
Ahmad Salim Al-Sibahi
ecd3bc63fd
Update Cabal-Version field to 1.22
We seem to have broken compatibility with old cabal versions.
Fixes #4345 .
2018-02-23 09:04:16 +01:00
Jens Petersen
5843c91e3c
add issue tracker to .cabal file 2018-02-22 16:58:20 +09:00
Mike Pilgrem
d3d1bda482 Bump ansi-terminal upper bound to <0.9
Bump ansi-terminal upper bound to <0.9, in response to https://github.com/fpco/stackage/issues/3143
2018-02-19 23:48:54 +00:00
Edwin Brady
d77513b966 Update version number properly this time (sorry!) 2018-01-07 18:10:44 +00:00
Edwin Brady
ab806e9dde Update version number 2018-01-07 18:07:51 +00:00
Jan de Muijnck-Hughes
cd7e553b6e Bumped Idris to work with LTS Haskell 10. 2017-12-20 11:05:31 +00:00
Jason Felice
b1a4264f7c Improve error message locations (#4210)
This contribution uses the strict WriterT transformer over our parser stack with a
monoid over FC and what used to be spanFC to compute the span of
non-terminal parsers from the spans of trackExtent-wrapped parsers.

The net result is that the locations reported for errors and warnings is
much improved. Most errors now report the extent of the error, rather than a
point roughly preceeding it (or after it, sometimes). There are still cases
where FCs are recomputed as a point after parsing--I didn't fix these, to cut
the scope of this PR--though all file locations produced during parsing use
the new, spanning parsing combinators.

I would start reading at Idris.Parser.Stack, then Idris.Parser.Helpers.

Overview:    
- *FC and non-*FC parsers (e.g. tokenFC and token, charLiteralFC and
    charLiteral, etc.) have been elided and the FC suffix removed. Any
    parser can be asked to report it's FC using the extent or withExtent
    combinators.
    
- Extents reported for errors end at the last character of the token, rather
    than on the following character.
 
- Now that all parsers can be queried for their spans, highlighting is
    done with the highlight parser combinator, e.g.
    highlight AnnQuasiquote (symbol "`{{" ...). These can be nested.
   
- Totality checking, in its current design, reports the extent of the first
    equation. This is a bit more misleading now that the span is computed
    correctly, since it could look like it's trying to indicate which clause is
    non-total. We should fix this (hopefully as a separate PR.)
   
- The span of clauses is actually the span of the right-hand side, and so this
    is reported when there is an error on the right-hand side or the left-hand
    side. We should also fix this (hopefully as a separate PR.)
    
- There's probably cases where, owning to the improved granularity, we will now
    notice errors were reported with FCs from the wrong object.
    I haven't tested an IDE-mode client yet. They may need to be patched if they
    are manually excluding the last character of tokens. Highlighting appears to
    work fine without changes, though.
2017-11-30 12:18:36 +01:00
Jason Felice
f33ba47bdc No longer need transformers-compat
This seems to be a shim for using strict transformers with
pre-0.3 transformers.
2017-11-14 09:49:59 -05:00
Jason Felice
a0e585bce6 Support GHC 7.10
Megaparsec uses Data.List.NonEmpty, which appears in base for GHC >=
8.0, but which it pulls from semigroups for GHC 7.10 and below.
2017-11-02 10:49:19 -04:00
Jason Felice
b0aacb5fec Merge remote-tracking branch 'upstream/master' into megaparsec 2017-11-01 22:48:13 -04:00
Jason Felice
5e9d8dec96 Use Megaparsec for expressions, remove parsers dep 2017-11-01 21:37:40 -04:00
Jason Felice
979404e307 Remove trifecta dependency 2017-10-30 22:19:19 -04:00
Jason Felice
a817addc31 Convert IdeMode.hs to use megaparsec 2017-10-30 10:48:04 -04:00
Matthew Pickering
6e0eebc05b
Expose Idris.Package.Parser 2017-10-30 12:15:07 +00:00
Alex Queiroz
c37edddb5a Make Idris build with Stack nightly 2017-10-23 17:08:51 +02:00
Niklas Larsson
6a00842a61 Update win32 bounds
The win32-notify package that clashed has been fixed.
2017-10-21 00:31:47 +02:00
Ahmad Salim Al-Sibahi
fcd2677210 Fix fingertree bounds to < 0.1.2 2017-10-03 15:28:46 +02:00
Jason Felice
d4bd8e6353 Clean up unused imports (#4065) 2017-09-16 19:28:47 +02:00
Ryan Scott
bfee5e64b7 Add Paths_idris to other-modules of codegen executables 2017-09-11 19:52:26 -04:00
Niklas Larsson
03383410de Try to make appveyor not be mad at warnings 2017-08-19 18:08:27 +02:00
Edwin Brady
e4fbe77e47 Add missing 'Default-Language' field 2017-08-05 19:05:44 +01:00
Edwin Brady
5e0301cbdc Increment version, update CHANGELOG 2017-08-05 17:42:50 +01:00
Niklas Larsson
e71ead193a Merge pull request #3965 from felixonmars/cheapskate-0.1.1
Fix compatibility with cheapskate-0.1.1
2017-08-04 14:48:38 +02:00
Niklas Larsson
011de20d8e Merge pull request #3860 from edmundsmith/issue3796
Fix for issue 3796 - 0/0 being compiled as -Infinity
2017-08-04 14:45:17 +02:00
Ryan Scott
65c1e9bfd3 Add custom-setup 2017-08-03 17:32:30 -04:00
Edmund Smith
8afc195882 Merge branch 'master' of Idris-dev into issue3796 2017-08-03 20:54:46 +01:00
Felix Yan
41de3e7623
Fix compatibility with cheapskate-0.1.1
Remove duplicated instances with new cheapskate
2017-08-03 22:23:14 +08:00
Scott Bonds
b9b32e5b82 Require 'unix' library on non-Windows machines, fixes #3961 2017-08-02 11:06:32 -07:00
Niklas Larsson
9831b017ba Lower cheapskate bound
Version 0.1.1 of cheapskate defines instances we also define.

We should remove those and raise the lower bound. But for now disallow 0.1.1.
2017-08-02 10:48:26 +02:00
Edmund Smith
ab65a300fb Merge branch 'master' of Idris-dev into issue3796 2017-08-01 20:09:33 +01:00
Niklas Larsson
5c6c22f8a6 Merge branch 'master' into cabal_stuff 2017-08-01 16:30:02 +02:00
Edwin Brady
70f172c92a Okay, let's use semver... (increment to v1.1.0)
...instead of arbitrary choices as to version number.
See http://semver.org/
2017-08-01 12:40:03 +01:00
Edwin Brady
5d7388bb3c Move extensions into source files
Because hackage told me to when checking idris.cabal for release...
2017-08-01 11:26:13 +01:00