Skip to content

Commit c21ac75

Browse files
author
askeblad
authored
typos (#413)
1 parent 02bdf9d commit c21ac75

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

lsp-test/src/Language/LSP/Test.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ runSession :: String -- ^ The command to run the server.
151151
-> IO a
152152
runSession = runSessionWithConfig def
153153

154-
-- | Starts a new sesion with a custom configuration.
154+
-- | Starts a new session with a custom configuration.
155155
runSessionWithConfig :: SessionConfig -- ^ Configuration options for the session.
156156
-> String -- ^ The command to run the server.
157157
-> C.ClientCapabilities -- ^ The capabilities that the client should declare.
@@ -703,7 +703,7 @@ getHover doc pos =
703703
let params = HoverParams doc pos Nothing
704704
in getResponseResult <$> request STextDocumentHover params
705705

706-
-- | Returns the highlighted occurences of the term at the specified position
706+
-- | Returns the highlighted occurrences of the term at the specified position
707707
getHighlights :: TextDocumentIdentifier -> Position -> Session (List DocumentHighlight)
708708
getHighlights doc pos =
709709
let params = DocumentHighlightParams doc pos Nothing Nothing

lsp-types/src/Language/LSP/Types/Lens.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ import Language.LSP.Types.Message
5656
import Language.LSP.Types.SemanticTokens
5757
import Control.Lens.TH
5858

59-
-- TODO: This is out of date and very unmantainable, use TH to call all these!!
59+
-- TODO: This is out of date and very unmaintainable, use TH to call all these!!
6060

6161
-- client capabilities
6262
makeFieldsNoPrefix ''MessageActionItemClientCapabilities

lsp-types/src/Language/LSP/Types/Parsing.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import Data.Type.Equality
2929
import Data.Function (on)
3030

3131
-- ---------------------------------------------------------------------
32-
-- Working with arbritary messages
32+
-- Working with arbitrary messages
3333
-- ---------------------------------------------------------------------
3434

3535
data FromServerMessage' a where

lsp-types/src/Language/LSP/Types/SMethodMap.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import Language.LSP.Types.Method (Method(..), SMethod(..))
2828

2929
-- This type exists to avoid a dependency on 'dependent-map'. It is less
3030
-- safe (since we use 'unsafeCoerce') but much simpler and hence easier to include.
31-
-- | A specialized altenative to a full dependent map for use with 'SMethod'.
31+
-- | A specialized alternative to a full dependent map for use with 'SMethod'.
3232
data SMethodMap (v :: Method f t -> Type) =
3333
-- This works by using an 'IntMap' indexed by constructor tag for the majority
3434
-- of 'SMethod's, which have no parameters, and hence can only appear once as keys

lsp/src/Language/LSP/Server/Core.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ instance Default Options where
252252
defaultOptions :: Options
253253
defaultOptions = def
254254

255-
-- | A package indicating the perecentage of progress complete and a
255+
-- | A package indicating the percentage of progress complete and a
256256
-- an optional message to go with it during a 'withProgress'
257257
--
258258
-- @since 0.10.0.0
@@ -319,7 +319,7 @@ data ServerDefinition config = forall m a.
319319
newtype ServerResponseCallback (m :: Method FromServer Request)
320320
= ServerResponseCallback (Either ResponseError (ResponseResult m) -> IO ())
321321

322-
-- | Return value signals if response handler was inserted succesfully
322+
-- | Return value signals if response handler was inserted successfully
323323
-- Might fail if the id was already in the map
324324
addResponseHandler :: MonadLsp config f => LspId m -> (Product SMethod ServerResponseCallback) m -> f Bool
325325
addResponseHandler lid h = do

0 commit comments

Comments
 (0)