doc-comments-ai icon indicating copy to clipboard operation
doc-comments-ai copied to clipboard

Haskell Issues

Open aravindgopall opened this issue 1 year ago • 3 comments

  • Signature node and actual method node are different and comments are applied on method node causing the comments to be printed after signature (which is not general pattern)
  • when we have a pattern match based code, it's treating them as two different nodes.

aravindgopall avatar Jan 17 '24 04:01 aravindgopall

@aravindgopall Hey, you can take a look at how I solved this for python. It is a similar situation I think

https://github.com/fynnfluegge/doc-comments-ai/blob/main/doc_comments_ai/treesitter/treesitter_py.py

fynnfluegge avatar Jan 17 '24 08:01 fynnfluegge

#32

@fynnfluegge Yes, I have implemented custom logic for Haskell.

aravindgopall avatar Jan 17 '24 10:01 aravindgopall

Currently, with the new PR one kind of syntax is not yet supported.

funcA, funcB, funcC, funcD :: FuncType

aravindgopall avatar Jan 17 '24 10:01 aravindgopall