Skip to content

Commit

Permalink
make fourmolu happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Baimetov committed Nov 7, 2024
1 parent 603caa0 commit 2fea370
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/StaticLS/IDE/InlayHints.hs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ getTypedefInlays absPath getTypes = do
fmtTypeStr :: Text -> Text
fmtTypeStr text
| text == "" = ""
| Text.length text > 50 = "" -- hide overly long inlays and buggy inlays
| Text.length text > 50 = "" -- hide overly long inlays and buggy inlays
| otherwise = " :: " <> text

getTypedefInlays_ :: AbsPath -> StaticLsM [InlayHint]
Expand All @@ -65,7 +65,7 @@ getTypedefInlays_ absPath = do
getTypedefInlays absPath getTypes

nodeToDescendants :: DynNode -> [DynNode]
nodeToDescendants node = node : (nodeToDescendants. getDynNode =<< node.nodeChildren)
nodeToDescendants node = node : (nodeToDescendants . getDynNode =<< node.nodeChildren)

selectNodesToType :: DynNode -> [DynNode]
selectNodesToType root = do
Expand Down
10 changes: 5 additions & 5 deletions src/StaticLS/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ serverDef argOptions logger = do
, configSection = ""
, parseConfig = \_conf _value -> Right ()
, doInitialize = do
initServer reactorChan argOptions logger
initServer reactorChan argOptions logger
, -- TODO: Do handlers need to inspect clientCapabilities?
staticHandlers = \_clientCapabilities ->
mapHandlers goReq goNot $
Expand All @@ -221,11 +221,11 @@ serverDef argOptions logger = do
, handleResolveCodeAction
, handleDocumentSymbols
, handleCompletion
-- Disabled. Will enable in its own branch
-- , handleInlayHintRequest
-- Currently disabled until we support configuration for the formatter
, -- Disabled. Will enable in its own branch
-- , handleInlayHintRequest
-- Currently disabled until we support configuration for the formatter
-- , handleFormat
, handleCompletionItemResolve
handleCompletionItemResolve
]
, interpretHandler = \env -> Iso (LSP.runLspT env) liftIO
, options = lspOptions
Expand Down

0 comments on commit 2fea370

Please sign in to comment.