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

Using alist in doc mode #1530

Open vasanthaganeshk opened 7 years ago

vasanthaganeshk commented 7 years ago

alist is being used to store function / operator. We could use a hash-table. Faster lookups?

gracjan commented 7 years ago

Where? Link?

vasanthaganeshk commented 7 years ago

https://github.com/haskell/haskell-mode/blob/master/haskell-doc.el#L664 https://github.com/haskell/haskell-mode/blob/master/haskell-doc.el#L1148

gracjan commented 7 years ago

Both of these hardcoded lists are mostly useless and should be superseded by a direct query to the compiler.

vasanthaganeshk commented 7 years ago

I feel that we should let it stay. This is because not all of them might want to start up a process and query it for docs. When there is no inferior haskell process, the docs still work minimally this way.