Compiler rejects type signatures for infix functions
Open
enhancement
front end
- Dominant language
- Standard ML
- Stars
- 44
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
The compiler accepts this:
```
l1 ++ l2 =
case l1 of
[] -> l2
h:t -> h : (t ++ l2)
main = Ret ()
```
But rejects any version with a type signature for `++`. For example, it rejects:
```
(++) :: [a] -> [a] -> [a]
l1 ++ l2 =
case l1 of
[] -> l2
h:t -> h : (t ++ l2)
main = Ret ()
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.