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.

Deriving via color

See original GitHub issue

Hi,

It seems the deriving via syntax is not correctly colored, I would expect both deriving and via to be colored as keywords, but via isn’t.

{-# LANGUAGE DerivingVia #-}

newtype Foo = Foo Int
  deriving Show via Int
  • deriving appears as a keyword (orange).
  • 😢 via appears as a regular word (white).

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
rikvdkleijcommented, Jun 22, 2020

@develop7 Thanks for reporting! Hmm, I didn’t check that case with two times deriving 😄

1reaction
develop7commented, Jul 14, 2020

Confirming it’s fixed! Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Don't allow deriving-via when the via type is identical ... - GitLab
Summary Currently we can use DerivingVia to derive an instance via the ... Prelude> data Color = Red | Green | Blue deriving...
Read more >
The fundamentals of understanding color theory - 99Designs
Color theory is both the science and art of using color. It explains how humans perceive color; and the visual effects of how...
Read more >
Using color | U.S. Web Design System (USWDS)
Deriving appropriate color palettes can be challenging, and letting existing colors and palettes be your guide makes sense. Collect images from other sources ......
Read more >
Deriving spectra from colors and rendering light interference
A new method for transforming colors into spectra, which we applied to rendering light interference using a standard ray tracer, significantly enhances ...
Read more >
Data.Derive: A User Manual
Using the Derive program. Let's imagine we've defined a data type: data Color = RGB Int Int Int | CMYK Int Int Int...
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