question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Haddock coloration behaves strangely

See original GitHub issue

In my current application we are starting to use real Haddock documentation, and I noticed the plugin behaves weirdly sometimes.

Start by copy/pasting it:

-- |foo
foo :: Bool
foo = True

-- |foo should be correctly displayed in green.

Now put your cursor at the end of this doc line and type enter. I think it would be a great improvement that it automatically adds -- to the beginning of the line because we are continuing the documentation.

Nevertheless, type -- bar. This is displayed in grey (regular comment) instead of green (Haddock) 😢

Now remove the last character. The grey block of documentation turns green! It also becomes green if you go to a green line and modify it (e.g. press space).

I don’t know what this is about, but it would be great if at least the 2 display bugs could be fixed. It would be even better if hitting enter at the end of a Haddock line automatically added -- to the next line.

And it would be 100% perfect if refreshing the Haddock display in Intellij (at least for our own code) didn’t require to use (Re)Build Hoogle database, but I guess this is too much asking ^^

By any chance, is this something easily fixable? If yes, I may try to take a look :x

Cheers!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
rikvdkleijcommented, Mar 4, 2020

@Sir4ur0n Took some time but is fixed in next release except for refreshing Haddock display in project code.

0reactions
sir4ur0ncommented, Mar 6, 2020

I confirm this works, this is an excellent improvement ❤️

Thank you again 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hiccup Horrendous Haddock III - How to Train Your Dragon Wiki
If one notices closely, it can be seen that he has grown stubble on his chin. His eye color has even seemed to...
Read more >
Why Haddock Yellows when Frozen | The Fish Site
Although yellowing is not harmful, affected fillets take on a distinctive yellow colour, which when cooked turn pink.
Read more >
Laura Haddock - IMDb
Laura Haddock was born on August 21, 1985 in England, UK. She is an actress, known for Guardians of the Galaxy (2014), Transformers:...
Read more >
Laura Haddock Quotations (9 Quotations) | QuoteTab
Discover 9 Laura Haddock Quotations: Laura Haddock: 'I've been very lucky and been ... Only recently have I started to notice it's a...
Read more >
Chocolate and Danger - Mark Bernstein
Celery root remoulade, with small chunks of home-smoked haddock. ... Homemade pumpkin ravioli in fennel broth, garnished with strange mushrooms ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found