Skip to content

Prevent stylish-haskell errors #401

Closed
@ivan-m

Description

@ivan-m

With haskell-stylish-on-save set to t and something that stylish-haskell can't parse (via haskell-src-exts) in a buffer, e.g.

{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE MultiParamTypeClasses #-}

class Foo c a where

  bar :: (c a) => a -> a

every time the buffer is saved the *Warnings* buffer pops up (typically overriding another buffer I had open, thus forcing me to change it back) with a parse error from stylish-haskell.

Is there a way to prevent this? It seems that this is because of the explicit call to display-warnings in

(display-warning cmd (apply 'format fmt args) :warning))))

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions