Skip to content

Function-name completion in haskell-indentation-mode #1027

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

Open
gracjan opened this issue Dec 16, 2015 · 2 comments
Open

Function-name completion in haskell-indentation-mode #1027

gracjan opened this issue Dec 16, 2015 · 2 comments

Comments

@gracjan
Copy link
Contributor

gracjan commented Dec 16, 2015

In haskell-indent, it also completes the function name.

Suppose following situation:

fib :: Int -> Int
fib 0 = 1
--       ^ cursor here

When I hit C-j and TAB twice, haskell-indent completes the function name:

fib :: Int -> Int
fib 0 = 1
fib 

But with haskell-indentation, function name is not completed.

@gracjan
Copy link
Contributor Author

gracjan commented Jan 12, 2016

This one is blocking #1065.

@gracjan
Copy link
Contributor Author

gracjan commented Mar 28, 2016

Note that where is overloaded keyword in Haskell, because it is used in a couple of places:

  • function declaration ... where
  • module ... where
  • class ... where
  • instance ... where
  • data ... where

We would like to provide completions where where introduces function declaration scope, that is all cases except the data ... where case when no two constructors should have the same name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant