Skip to content
This repository was archived by the owner on Aug 9, 2024. It is now read-only.
This repository was archived by the owner on Aug 9, 2024. It is now read-only.

Auto generation #78

Closed
Closed

Description

@AnthonyJacob

(1)

case expression of
    pattern -> expression
    otherwise -> expression

uses -> instead of →
(2)
+tab = ${1:pattern} -> expression
\ is missing and ${1:pattern} must be selected manually to be rewritten
(3)
Would you mind adding unicode lambda?
λ p -> p instead of \ p -> p

Do you know any font, in which unicode chars like → ⤜ ← ∷ ↢ etc. look better then-> >>- <- :: -<?

Activity

  1. lierdakil commented on Jul 10, 2016

    @lierdakil
    Contributor

    Okay, (2) fixed. I'm not too keen on (1) and (3), since using unicode characters requires UnicodeSyntax GHC extension. So defaulting to those doesn't seem like a particularly good idea. You could probably override those yourself if you want to, since those are just predefined snippets. Add your snippets for .source.haskell scope and you should be good.

    As for font, I'm using FiraCode, which has ligatures for most special operators. Those mostly look better than unicode equivalents. I'm not aware of any monospace fonts that have nice-looking unicode characters compared to ligatures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions