I'm trying to add more symbols to haskell-mode
's haskell-font-lock
.
The documentation for haskell-font-lock-symbols-alist
says:
Alist mapping Haskell symbols to chars. Each element has the form (STRING . CHAR) or (STRING CHAR PREDICATE). STRING is the Haskell symbol. CHAR is the character with which to represent this symbol. PREDICATE if present is a function of one argument (the start position of the symbol) which should return non-nil if this mapping should be disabled at that position.
I'm trying something like:
(add-to-list 'haskell-font-lock-symbols-alist `("heart" . 2665))
But when typing 'heart' in haskell mode the font-lock won't work, although it works for ->
, .
, =>
.
What am I missing ?