dhall-lsp-server-1.0.0

Safe HaskellNone
LanguageHaskell2010

Dhall.LSP.Backend.Linting

Synopsis

Documentation

data Suggestion Source #

Constructors

Suggestion 

Fields

suggest :: Expr Src Import -> [Suggestion] Source #

Given an dhall expression suggest all the possible improvements that would be made by the linter.

lint :: Expr s Import -> Expr t Import #

Automatically improve a Dhall expression

Currently this:

  • removes unused let bindings with removeLetInLet.
  • consolidates nested let bindings to use a multiple-let binding with removeUnusedBindings.