2.2.0 • Published 7 years ago

purescript-suggest v2.2.0

Weekly downloads
296
License
MIT
Repository
github
Last release
7 years ago

purescript-suggest

Command line tool (and library) to apply the suggested fixes from psc for warnings, such as removing redundant imports, or making imports explicit.

Warning

This is a tool that modifies your source code in place by design. Errors in this code, or any issues with the warnings passed in, could result in the deletion of your precious source code.

COMMIT EARLY COMMIT OFTEN.

Installation

To install ps-suggest globally:

npm install -g purescript-suggest

Usage

Pipe the JSON compiler output to stdin of ps-suggest. You probably want to use psa, possibly with a warning stash and almost certainly filtering out library errors. This also gives you the chance to choose which codes to replace.

To check changes that will be applied:

  pulp build --stash --censor-lib --json-errors 2>&1 | ps-suggest --list

To apply the changes to all affected files:

  pulp build --stash --censor-lib --json-errors 2>&1 | ps-suggest --apply

Library usage

Install purescript-suggest via bower and use something like Publish.applySuggestions, which takes already parsed errors ala purescript-psa.

2.2.0

7 years ago

2.1.1

8 years ago

2.0.0

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago