🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

purescript-suggest

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

purescript-suggest

Apply PureScript compiler suggestions to fix warnings

latest
Source
npmnpm
Version
2.2.0
Version published
Maintainers
1
Created
Source

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.

Keywords

purescript

FAQs

Package last updated on 15 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts