CakeML / CakeML/pure

Compiler rejects type signatures for infix functions

Open
#26 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.