No whitespace between numeric literal and letters required, unexpected behaviour?
Summary
A numeric literal next to other literals or labels with no whitespace between parse as separate expressions.
Steps to reproduce
Evaluate following expressions:
> x = 1
> (+) 1x
2
another example:
> (,) 3.15"hi"
(3.15,"hi")
Expected behavior
I guess in this case we can infer the sematics anyways and don't need whitespace between the numberic literal and other stuff but it feels unnatural. Should this be labeled expected behaviour?
Environment
- GHC version used: ghc 9.0.2
Optional:
- Operating System:
- System Architecture: