Commit Graph

2611 Commits

Author SHA1 Message Date
Thomas Dziedzic
c31cd9513f make Data.List1.length public 2021-11-18 16:42:49 +00:00
Thomas Dziedzic
88f8f3df8e implement Data.List1.length 2021-11-18 08:38:00 +00:00
Guillaume ALLAIS
686a52fb09 [ fix #2122 ] Normalise source directory "." away 2021-11-17 11:55:01 +00:00
Ben Hormann
d1e90a5b8e
[ performance ] bitops arithmetic speedup (#2081) 2021-11-17 11:54:19 +00:00
Denis Buzdalov
a4eb8b2ec3 [ doc ] Fix a complain of not being in a toctree 2021-11-17 10:50:49 +00:00
Mathew Polzin
0eba4c691e
Add %deprecate pragma (#2086) 2021-11-17 10:41:03 +00:00
André Videla
cc45ff957a
Merge pull request #2085 from andrevidela/string-parser-position
Show the line and column in diagnostic message in String.Parser
2021-11-15 11:09:57 +00:00
Denis Buzdalov
ba180706d6 [ ux ] Make expected and given results be printed colourful in Golden 2021-11-11 23:25:11 +00:00
Kamil Shakirov
ae411fe756 [ doc ] Mark code blocks as Idris code 2021-11-11 18:55:11 +00:00
Guillaume ALLAIS
c6897396e8 [ highlight ] for doc strings 2021-11-11 10:33:44 +00:00
Mathew Polzin
d2ce85ea05
Merge pull request #2096 from madman-bob/system-run
Add the `System` `run` function
2021-11-10 08:58:39 -08:00
Robert Wright
2ee10d9b34 Add Alternating List odds and evens functions 2021-11-10 08:40:25 +00:00
Mathew Polzin
0edac54cd9
Merge pull request #2113 from mattpolzin/nomangle-ttc-version 2021-11-09 17:27:21 -08:00
André Videla
9e6678e3d3
Merge pull request #2102 from madman-bob/list-singleton
Add List singleton function
2021-11-10 00:46:40 +00:00
André Videla
7f932036e9 Show the line and column in diagnostic message
This also updates the error message of some common combinators
2021-11-10 00:44:09 +00:00
Mathew Polzin
b1f6c6ea0b bump TTC version for nomangle additions. 2021-11-09 16:30:03 -08:00
Zoe Stafford
3063218d46
[ new ] Add %nomangle (#2063)
This is (for once) not a breaking changes, instead backends will need to opt in to this change, using the utilities in Compiler.NoMangle. See the js backend for an example of how to do this.

This is the first step to being able to use idris to create libraries usable by other languages.
2021-11-09 16:23:50 +00:00
André Videla
b511ed54b3
Merge pull request #2044 from ska80/use-multiline-strings
[refactor] Use multiline strings for better readability
2021-11-09 13:05:39 +00:00
Robert Wright
2a666dbaac Add System.run changes to CHANGELOG 2021-11-08 10:42:39 +00:00
Edwin Brady
2f6ec76223
Get information about names in reflection (#2110)
* Only normalise a search goal if it's fast

While we do end up normalising it anyway on success, there might be
things blocking it that make the intermediate terms very big, so only do
it speculatively to see if it's quick.

* Get information about names in reflection

Currently this is only whether it's a function, or data or type
constructor. I expect more may be useful/possible.
2021-11-07 15:06:53 +00:00
Edwin Brady
38e48be5b1
Only normalise a search goal if it's fast (#2109)
While we do end up normalising it anyway on success, there might be
things blocking it that make the intermediate terms very big, so only do
it speculatively to see if it's quick.
2021-11-07 13:59:24 +00:00
Kamil Shakirov
cadbee9fc6 Apply suggestions from code review 2021-11-06 18:49:41 +06:00
Kamil Shakirov
a73e8a3e33 Apply suggestions from code review 2021-11-06 18:48:21 +06:00
Robert Wright
921bc24a2a Add List singleton function 2021-11-05 16:08:54 +00:00
Robert Wright
4732486bbc Add System run function 2021-11-05 11:59:17 +00:00
Robert Wright
dc47df688c Add System.File fRead function 2021-11-05 11:59:17 +00:00
Robert Wright
c1fc487bec Return error code from pclose 2021-11-05 11:59:17 +00:00
Robert Wright
ac716c1dc7 Add SnocList factConcat transformation 2021-11-05 11:59:17 +00:00
Robert Wright
c964f8d8bc Add System escapeCmd function 2021-11-05 11:59:17 +00:00
Kamil Shakirov
1e19189deb Apply suggestions from code review 2021-11-04 12:52:28 +06:00
Kamil Shakirov
25b62b4e23 Revert the problematic code block to unlines
Noted in issue #2087
2021-11-04 12:30:25 +06:00
Kamil Shakirov
47326767ac [ cleanup ] A few more cleanups 2021-11-04 12:30:25 +06:00
Kamil Shakirov
15d5c78447 [ cleanup ] A few more cleanups 2021-11-04 12:30:25 +06:00
Kamil Shakirov
1e6f9dad71 [cleanup] Cleanup after rebasing 2021-11-04 12:30:25 +06:00
Denis Buzdalov
26b94f09f7 [ cleanup ] Add idents to some underindented stuff 2021-11-04 12:30:25 +06:00
Kamil Shakirov
c1fe44be01 [refactor] Use multiline strings for better readability 2021-11-04 12:30:25 +06:00
Mathew Polzin
0a4fd3dc0e
Merge pull request #2092 from gwerbin/docs_ide-mode-adjustments
Add small clarifications to IDE mode docs
2021-11-03 18:27:10 -07:00
Christian Rasmussen
21ca9066f1 Detect ARM Macs as a Darwin OS 2021-11-03 08:43:32 +00:00
Igor Slieptsov
9735ee4235 [ doc ] fix example in doc letbinding 2021-11-03 08:17:34 +00:00
Greg Werbin
778fac7a8f
[ doc ] Add note about ExprSearch 2021-11-03 00:06:50 -04:00
Greg Werbin
4926ae3ab5
[ doc ] Clarify IDE Mode docs & adjust text 2021-11-03 00:06:50 -04:00
G. Allais
668c221474
[ re #2032 ] faster version of fromInteger (#2090) 2021-11-02 17:43:01 +00:00
G. Allais
15cc8243f7
[ re #2001 ] Make some prelude interfaces total (#2083)
The prelude interfaces that have default definitions for all of
their fields are declared total so that users are forced to think
about meeting the minimal requirements for an implementation to be
valid.
2021-11-02 15:34:52 +00:00
Christian Rasmussen
44fc58013a
[ fix ] loading of dylib on macOS Monterey (#2078) 2021-11-02 10:19:59 +00:00
André Videla
1a8747541e
Merge pull request #2080 from madman-bob/take-until
Add takeUntil Data.String.Parser parser
2021-11-02 00:38:57 +00:00
Robert Wright
12955bc5bc Add takeUntil Data.String.Parser parser 2021-11-01 13:54:46 +00:00
Bertalan Kis
babf346a77 [base] add IsRight and IsLeft proofs to Data.Either 2021-11-01 11:50:05 +00:00
Edwin Brady
d531cc8dea
Cumulativity preparation: Add field for universe level to TType (#2076)
* Add field for universe level to TType

This doesn't do anything yet, other than introduce new universe
variables whenever we introduce a new type, but it's the first step
towards checking the universe hierarchy. Next step is to add constraints
when checking pi, unifying/converting types, and when adding data
constructors.

* TTC version increment

Thought I'd done this, but apparently I didn't save the file. Oops!

* Add structure for universe constraints

* Fix display of ambiguity errors

We need to store the Context in errors at the point where the error
occurs, or we might get some nonsense in the message. There's still a
couple of places in Error where we don't do this right. This fixes one
of them, and improves a few messages in the process.
2021-10-31 00:00:16 +01:00
Edwin Brady
2df3ecc2e3
Fix display of ambiguity errors (#2075)
We need to store the Context in errors at the point where the error
occurs, or we might get some nonsense in the message. There's still a
couple of places in Error where we don't do this right. This fixes one
of them, and improves a few messages in the process.
2021-10-30 23:08:53 +01:00
madman-bob
a6a64c6ddf
[ contrib ] Alternating lists of known parity (#2043) 2021-10-30 00:12:44 +01:00