Hi Gunda,
Could you be a bit more precise about what you want to achieve? HLS
already displays type errors in your program, perhaps it would be
better to ask someone on the HLS issue tracker how to use their API to
do what you want.
Matt
On Fri, Jul 30, 2021 at 7:03 PM Guanda Yuan <guandayuan0715@gmail.com> wrote:
>
> Hello all,
>
> I want to write a plugin for Haskell Language Server, to collect type errors in the code. I'm new to GHC API, so I need some help. My current thought is, I can collect diagnostics or the error messages and extract the type error infos. I have tried to referred to the Haddock documentation for GHC API, but I'm still not sure which function should I use.
>
> Thanks,
> Guanda
> _______________________________________________
> ghc-devs mailing list
> ghc-devs@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs