-
Notifications
You must be signed in to change notification settings - Fork 347
:type/:type-at follow up tasks #638
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
Comments
@gracjan
As for First task in my todo list already. I'll have a look a bit lately. As for the last task: this is known behaviour, and it is a bit confusing for me. For example I can't imagine what could make user to infer type for a part of expression, like |
I think we could merge |
Differences between
Likely, these are essentially equal functions. I suppose we could merge this functions.
In case of info functions:
Present results same way as |
I'm still thinking about this one. There is a lot of room for improvement here. |
I did some more research. This is what ghc-mod does: Are there people loving ghc-mod way? |
Yes. When it works (ghc-mod is kind of fragile), I find it much more useful than Mostly because the later requires Then, let say |
Can you explain a bit? |
For instance given the expression It works for more complex expressions. This feature does not seem to exist with |
I was not aware of such behavior, but I think it's not hard to implement. @gracjan what do you think about this stuff? But this is minor issue, as for me the the major issue is about merging Oh, by the way, @PierreR can you please tell me does ghc-mod work for identifiers inside local |
@PierreR, thanks, now we now that ghc-mod type inference could be replaced only with |
When #598 is done there are things that should be improved in that scope:
haskell-mode-show-type-at
,haskell-process-do-type
andhaskell-process-do-try-type
can be merged into one functionality:set +c
was not executed by detecting"Couldn't guess that module name. Does it exist?"
, see here https://github.com/chrisdone/ghci-ng/blob/d5c4e41e265d3f35c976185f0eaa283e05e78169/ghc/GhciFind.hs#L39:type-at
is a syntax error because somebody uses plain GHCi instead of GHCI-ng:unknown command ':type-at'
, inform userp
to 'i' inmap (+1) list
. Currently it inserts something in the middle breaking the program completely.The text was updated successfully, but these errors were encountered: