Stylish-haskell not running
See original GitHub issueI 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:
Similarly, when I run Ctrl+alt+O (“Optimize imports”), I get a message, but nothing else happens:
IntelliJ Community 2017.1.1, IntelliJ-Haskell 1.0.0-beta7, Stack 1.4.0.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
.👍