Skip to content
This repository was archived by the owner on Mar 14, 2021. It is now read-only.

atom-haskell-archive/language-haskell-scoped

Repository files navigation

language-haskell-scoped package

WARNING: Uses some horrible hacks, so not at all guaranteed to work.

This is an experimental package. Once code is mature enough, it will likely be merged into language-haskell.

Highlight identifiers in current scope in Haskell sources.

image

Dependencies:

  • language-haskell
  • haskell-ghc-mod

Default style, which lightens highlight color, works relatively well only for dark themes. You can define your own in Edit → Stylesheet...

atom-text-editor::shadow {
  .known-identifier.haskell {
    -webkit-filter: brightness(100%); //disable default style
  }
  .known-identifier.identifier.haskell {
    color: red; // set your preferred color here
  }
  .known-identifier.tag.haskell { // Type constructors
    color: green; // set your preferred color here
  }
  .known-identifier.type.haskell {
    color: blue; // set your preferred color here
  }
  .prelude.haskell { // to disable built-in Prelude highlighting
    color: inherit !important;
  }
}