question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stylish-haskell not running

See original GitHub issue

I have a .stylish-haskell.yaml set up to sort imports. So for example, when I run stylish-haskell manually, this

import Data.List (zip)
import Control.Lens
import Data.Map (Map)
import Data.Sequence (Seq)
import Data.Set (Set)
import Data.Text (Text)

would change to this

import Control.Lens
import Data.List (zip)
import Data.Map (Map)
import Data.Sequence (Seq)
import Data.Set (Set)
import Data.Text (Text)

When I run Ctrl+alt+L (“Reformat Code”), I get this popup but nothing changes:

screenshot from 2017-04-19 14-25-46

Similarly, when I run Ctrl+alt+O (“Optimize imports”), I get a message, but nothing else happens:

screenshot from 2017-04-19 14-26-12

IntelliJ Community 2017.1.1, IntelliJ-Haskell 1.0.0-beta7, Stack 1.4.0.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rikvdkleijcommented, Apr 19, 2017

You have to do Ctrl+Alt+Semicolon. I can not “override” the default shortcut for code formatting.

Btw, it will first use hindent and then stylish haskell. See other shortcuts for doing them separately in menu Code/Haskell.

0reactions
chris-martincommented, Aug 10, 2017

👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

haskell/stylish-haskell: Haskell code prettifier - GitHub
A simple Haskell code prettifier. The goal is not to format all of the code in a file, since I find those kind...
Read more >
Error installing stylish-haskell on Mac OS X ... - Stack Overflow
Go to https://www.haskell.org/platform/ghc-clang-wrapper. Press command-s to save the script in your download folder. Install it by running ...
Read more >
Haskell Hindent/Stylish formatter problems - Reddit
I am working on MacOS and I want to install hindent/stylish for my haskell project: stack install stylish-haskell hindent I get following ...
Read more >
stylish-haskell - command-not-found.com
stylish -haskell prettifies Haskell code. A design goal is not getting in the user's way, so it restricts itself to formatting only some...
Read more >
Haskell Mode 16.1-git: Editing Haskell Code
You can set this behavior by typing: M-x customize-variable RET haskell-stylish-on-save . You can install stylish-haskell by running stack install stylish- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found