irvinlim / hindent-format

A Visual Studio Code formatter for Haskell using hindent (https://github.com/commercialhaskell/hindent)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hindent-format README

This extensions uses hindent to format Haskell source code. It supports the standard Format Document and Format Selection actions.

Features

The palette command Hindent: Format Document or Selection is provided. If multiple formatters are registered for Haskell documents, this command can be used to invoke this specific formatter.

Configuration

hindent can be moderately configured by placing a .hindent.yaml file in the workspace directory or the user's home directory. The default configuration is:

indent-size: 2
line-length: 80
force-trailing-newline: true

Requirements

This extension requires at least hindent version 5.2.3 to be installed.

Extension Settings

This extension contributes the following settings:

  • hindent-format.enable: enable/disable this extension (default: true)
  • hindent-format.command: set the path to the hindent executable, no arguments should be specified here (default: hindent)

About

A Visual Studio Code formatter for Haskell using hindent (https://github.com/commercialhaskell/hindent)

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:TypeScript 100.0%