Idris2/libs/contrib/Data/List
G. Allais 21c6f4fb79
[ breaking ] remove parsing of dangling binders (#1711)
* [ breaking ] remove parsing of dangling binders

It used to be the case that

```
ID : Type -> Type
ID a = a

test : ID (a : Type) -> a -> a
test = \ a, x => x
```

and

```
head : List $ a -> Maybe a
head [] = Nothing
head (x :: _) = Just x
```

were accepted but these are now rejected because:

* `ID (a : Type) -> a -> a` is parsed as `(ID (a : Type)) -> a -> a`
* `List $ a -> Maybe a` is parsed as `List (a -> Maybe a)`

Similarly if you want to use a lambda / rewrite / let expression as
part of the last argument of an application, the use of `$` or parens
is now mandatory.

This should hopefully allow us to make progress on #1703
2021-08-10 19:24:32 +01:00
..
Elem [ breaking ] remove parsing of dangling binders (#1711) 2021-08-10 19:24:32 +01:00
Lazy [ new ] Proof search from 'Applications of Applicative Proof Search' (#1093) 2021-03-01 08:29:43 +00:00
Views [ breaking ] remove parsing of dangling binders (#1711) 2021-08-10 19:24:32 +01:00
Algebra.idr Add some algebra implementations 2020-07-17 08:25:20 -05:00
AtIndex.idr [ breaking ] remove parsing of dangling binders (#1711) 2021-08-10 19:24:32 +01:00
Equalities.idr [ breaking ] remove parsing of dangling binders (#1711) 2021-08-10 19:24:32 +01:00
Extra.idr [ base ] add List functions (#1550) 2021-07-01 08:00:12 +01:00
HasLength.idr [ fix #621 ] add warnings for shadowed global definition (#1407) 2021-05-14 17:35:21 +01:00
Lazy.idr Add foldMap to Foldable (#1483) 2021-06-01 15:05:04 +01:00
Palindrome.idr finish removing duplication between the exported 'list reverse' properties in base and those in contrib. 2021-01-10 20:40:45 -08:00
Reverse.idr finish removing duplication between the exported 'list reverse' properties in base and those in contrib. 2021-01-10 20:40:45 -08:00
TailRec.idr [ breaking ] remove List1 related ambiguities (#690) 2020-09-22 15:07:40 +01:00