branch: elpa/haskell-tng-mode commit 8405852eb32daea610b6ad13dbb7a78c8ffdeefc Author: Tseen She <ts33n....@gmail.com> Commit: Tseen She <ts33n....@gmail.com>
document bugs and ideas --- haskell-tng-extra.el | 4 ++++ haskell-tng-font-lock.el | 2 ++ 2 files changed, 6 insertions(+) diff --git a/haskell-tng-extra.el b/haskell-tng-extra.el index c6f0dbb..1037c99 100644 --- a/haskell-tng-extra.el +++ b/haskell-tng-extra.el @@ -143,5 +143,9 @@ When in a comment and called with a prefix, the comment will be completed." "\\/")))) ".")) +;; TODO cleanup imports based on -ddump-minimal-imports (requires user opt-in, +;; .imports discovery and cleanup). Could also do dead code analysis with +;; this data. + (provide 'haskell-tng-extra) ;;; haskell-tng-extra.el ends here diff --git a/haskell-tng-font-lock.el b/haskell-tng-font-lock.el index bd923d7..4de7695 100644 --- a/haskell-tng-font-lock.el +++ b/haskell-tng-font-lock.el @@ -107,6 +107,7 @@ (haskell-tng:font:deriving:keyword (1 'haskell-tng-keyword-face keep) (2 'haskell-tng-type-face keep)) + ;; TODO everything after a data constructor is a type ;; TODO unnamed newtype fields should be a type, not a constructor ;; TODO bug, multiple standalone instance declarations in a row do not fire @@ -208,6 +209,7 @@ Some complexity to avoid matching on operators." (when-let (close (haskell-tng--util-paren-close)) (when (<= close limit) (goto-char open) + ;; TODO do not highlight field names as conids (e.g. typeclass methods) (re-search-forward (rx (+ anything)) close t)))))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;