Skip to content

Commit

Permalink
Fix build errors on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
JakuJ committed Aug 27, 2024
1 parent 9c6b954 commit 236a916
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Raise/CodeLens.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{-# LANGUAGE CPP #-}

module Raise.CodeLens (
registerLenses
) where
Expand Down Expand Up @@ -27,6 +29,9 @@ cmdList = [ ("Typecheck", "raise.typeCheck")
registerLenses :: LspM () ()
registerLenses = do
let rsp = map (uncurry registerCommand) cmdList
_ <- registerCapability SMethod_TextDocumentCodeLens regOpts $ \_ responder -> do
responder (Right (InL rsp))
#ifdef mingw32_HOST_OS
_ <- registerCapability mempty SMethod_TextDocumentCodeLens regOpts $ \_ responder -> responder (Right (InL rsp))

Check failure on line 33 in src/Raise/CodeLens.hs

View workflow job for this annotation

GitHub Actions / ubuntu

parse error on input ‘<-’
#else
_ <- registerCapability SMethod_TextDocumentCodeLens regOpts $ \_ responder -> responder (Right (InL rsp))
#endif
pure ()

0 comments on commit 236a916

Please sign in to comment.