N.B. This is a fork of the Source Code Pro repository
Programming languages are limited to relatively few characters. As a result of a limited character set, combined character operators surfaced quite early, such as the widely used arrow (->
), comprised of a hyphen and greater sign. It looks like an arrow if you know the analogy and squint a bit.
Composite glyphs become especially problematic in languages such as Haskell which utilize these complicated operators (<-
, ::
, =>
, -<
, >>=
etc.) extensively (over 100 in lens
alone!). Prettified code improves readability considerably - some Haskell programmers have even resorted to unicode symbols (ie. ⇒
, ←
etc.). This opens a whole new can of worms. In addition to encoding/compatibility problems and all the reasons it never worked out in APL, these symbols are one-character-wide and therefore eye-strainingly small.
Hasklig solves this problem the way typographers have always solved ill-fitting characters which co-occur often: ligatures. The underlying code stays the same — only the representation changes.
Let me know how your editor is supported.
- Leksah
- TextEdit
- Atom (add
text-rendering: optimizeLegibility;
to your.editor
css.) - Chocolat
- Kate
- KWrite
- gEdit
- Any terminal editor
- Sublime Text (Vote for the enhancement here)
- MacVim
- Glyph substitution for
\
→λ
and.
→∘
- Terminal support (for example iTerm2)