haskell / haskell-mode

Emacs mode for Haskell
http://haskell.github.io/haskell-mode/
GNU General Public License v3.0
1.33k stars 342 forks source link

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

Open gracjan opened 8 years ago

gracjan commented 8 years ago

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 commented 8 years ago

This one is blocking #1065.

gracjan commented 8 years ago

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

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.