[GHC] #14812: Dot-Notation for Flipped Function Application
GHC
ghc-devs at haskell.org
Fri Feb 16 09:16:13 UTC 2018
#14812: Dot-Notation for Flipped Function Application
-------------------------------------+-------------------------------------
Reporter: tepan | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by tepan):
Replying to [comment:3 svenpanne]:
Your premise is that whitespaces do or should only matter for indentation
("offside rule"), but they do matter as I pointed out, exactly when it
comes to modules and the `.` syntax: `Foo . bar` is function composition
of constructor `Foo` and function `bar`, whereas `Foo.bar` is `bar` of
module `Foo`. The aim of my proposal is not to change that.
Current dot-notation for modules (not to be changed):
* `Foo.bar` (`bar` of module `Foo`)
Proposed dot-notation for function application:
* `foo.bar` (function `bar` applied to `foo`)
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14812#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list