Idris2/libs/contrib/Data/Nat
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
..
Order [ breaking ] remove parsing of dangling binders (#1711) 2021-08-10 19:24:32 +01:00
Ack.idr Port over some contrib stuff 2020-06-15 14:56:19 -05:00
Algebra.idr [ new ] Perfect binary trees (#1063) 2021-02-22 09:54:16 +00:00
Division.idr [ breaking ] remove parsing of dangling binders (#1711) 2021-08-10 19:24:32 +01:00
Equational.idr Division theorem (#695) 2020-10-06 13:09:02 +01:00
Exponentiation.idr Define and implement Relation interfaces (#1472) 2021-07-09 09:06:27 +01:00
Fact.idr Port over some contrib stuff 2020-06-15 14:56:19 -05:00
Factor.idr [ breaking ] remove parsing of dangling binders (#1711) 2021-08-10 19:24:32 +01:00
Fib.idr Port over some contrib stuff 2020-06-15 14:56:19 -05:00
Properties.idr [ refactor ] introduce NonZero 2021-03-31 17:59:58 +01:00