Code Monkey home page Code Monkey logo

Comments (4)

JustusAdam avatar JustusAdam commented on June 13, 2024 2

Okay, I think I got them all now?

Thanks for the diligent reporting!

from language-haskell.

sheaf avatar sheaf commented on June 13, 2024

Excellent, the addition of highlighting for type families and pattern synonyms is very much appreciated. Thanks!

The code for highlighting type families should be extended to work with data families too:
data_family_highlighting
Changing data to type in the above makes the highlighting work properly, so it seems it's just a case of allowing the data keyword.

For pattern synonyms, multiple patterns are not currently highlighted properly:
multiple_pattern_synonyms_highlighting
If that's annoying to fix then no big deal of course. (I'm not sure why False is not getting highlighted properly there; I've reported that separately in #122.)

As seen in this screenshot, it would also be nice to support the keywords for the three built-in deriving strategies: stock, newtype and anyclass.

Finally, the highlighting for the single-line deriving via that is currently implemented seems to always require parentheses:
deriving_via_highlighting

Sorry for including all this in this single ticket; I can split it out into other issues if you would prefer.
I have a few other bugs to report, but let me be clear that I am very appreciative of the effort you have put in, and don't in any way mean to discourage. Thanks again.

from language-haskell.

sheaf avatar sheaf commented on June 13, 2024

I realise now that defining multiple patterns at once in a pattern synonym is actually already supported, but it's #122 that makes it look otherwise.

from language-haskell.

sheaf avatar sheaf commented on June 13, 2024

All the keywords mentioned in this ticket are now supported, so I'm closing this issue.

Some highlighting issues still remain, e.g. type families aren't correctly highlighting types (highlighting them as values instead). This is being tracked separately in #133.

from language-haskell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.