-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #519 from haskell/mpj/formatting
Format with fourmolu
- Loading branch information
Showing
453 changed files
with
5,891 additions
and
4,599 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Format | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
check-formatting: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cachix/install-nix-action@v22 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- run: nix-shell --run "fourmolu -m check ." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
indentation: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
{-# LANGUAGE OverloadedStrings #-} | ||
|
||
import Control.Applicative.Combinators | ||
import Control.Monad.IO.Class | ||
import Language.LSP.Test | ||
import Language.LSP.Protocol.Types | ||
import Language.LSP.Protocol.Message | ||
import Language.LSP.Protocol.Types | ||
import Language.LSP.Test | ||
|
||
main = runSession "lsp-demo-reactor-server" fullCaps "test/data/" $ do | ||
doc <- openDoc "Rename.hs" "haskell" | ||
|
||
-- Use your favourite favourite combinators. | ||
skipManyTill loggingNotification (count 1 publishDiagnosticsNotification) | ||
|
||
-- Send requests and notifications and receive responses | ||
rsp <- request SMethod_TextDocumentDocumentSymbol $ | ||
DocumentSymbolParams Nothing Nothing doc | ||
rsp <- | ||
request SMethod_TextDocumentDocumentSymbol $ | ||
DocumentSymbolParams Nothing Nothing doc | ||
liftIO $ print rsp | ||
|
||
-- Or use one of the helper functions | ||
getDocumentSymbols doc >>= liftIO . print | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.