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

Cannot get documentation or types for operators #66

Closed
archaeron opened this issue Sep 19, 2015 · 9 comments
Closed

Cannot get documentation or types for operators #66

archaeron opened this issue Sep 19, 2015 · 9 comments

Comments

@archaeron
Copy link
Member

The operators are being sent as they appear in the code, but they need parenthesis around them.

:: -> (::)

@archaeron
Copy link
Member Author

correction:
I'ts not the fault of the idris compiler, but of this function:

getWordUnderCursor: (editorView) ->
editor = editorView.model
options =
wordRegex: /^[ ]*$|[^\s\/\\\(\)":,\.;<>~!@#\$%\^&\*\|\+=\[\]\{\}`\?\-…]+/g
cursorPosition = editor.getLastCursor().getCurrentWordBufferRange options
editor.getTextInBufferRange cursorPosition

@david-christiansen
Copy link
Member

Well, we could also make the compiler a bit more permissive on its syntax here :)

@archaeron
Copy link
Member Author

What I found out is that operators work sometimes without. I think <!> worked, but :: didn't. Is this posdible?

@archaeron
Copy link
Member Author

No, it doesn't work anymore. Strange. But it would be nice if I could just use:
:t ::
:)

@david-christiansen
Copy link
Member

I don't think that it ever worked without the parens...

@archaeron
Copy link
Member Author

it did for me. but that could have been anything on my end :D But the issue is resolved now. I check if it's an operator and add two parenthesis :)

@archaeron
Copy link
Member Author

I could probably just always add parens

@david-christiansen
Copy link
Member

Or we can slightly special-case the command parser in the compiler :-) This will make it easier for command-line users as well, so I think that's the better way.

@archaeron
Copy link
Member Author

👍 even better. thanks!

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