Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is the syntax of "." punctuation? #639

Closed
ikirill opened this issue May 10, 2015 · 1 comment
Closed

Why is the syntax of "." punctuation? #639

ikirill opened this issue May 10, 2015 · 1 comment

Comments

@ikirill
Copy link
Contributor

ikirill commented May 10, 2015

"." is a valid constituent of qualified identifiers, e.g., Data.List.map, so shouldn't it have symbol-constituent syntax?

This has the side effect that (thing-at-point 'symbol) (which is emacs-standard) doesn't quite work correctly: when placed on a qualified identifier, it selects only the unqualified identifier or a part of the module name (e.g., map or Data or List).

Is this intentional, or a bug?

@gracjan
Copy link
Contributor

gracjan commented May 10, 2015

"." has many functions in Haskell. Example:

forall a . a -> a
f . g
Data.List.map
Control.Category..  (note two dots at the end)

It is best to treat "." default as punctuation.

@gracjan gracjan closed this as completed May 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants