From 2cb4d44f4ab830bcb2dbe565c4a50e8caef197a3 Mon Sep 17 00:00:00 2001 From: Timothy Clem Date: Tue, 5 Feb 2019 10:04:05 -0800 Subject: [PATCH] Align the :: --- src/Semantic/API/Types.hs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Semantic/API/Types.hs b/src/Semantic/API/Types.hs index 2a2f2c40a..f769712c4 100644 --- a/src/Semantic/API/Types.hs +++ b/src/Semantic/API/Types.hs @@ -92,8 +92,8 @@ newtype ParseTreeRequest = ParseTreeRequest { blobs :: [Blob] } data Blob = Blob - { content :: T.Text - , path :: FilePath + { content :: T.Text + , path :: FilePath , language :: Language } deriving stock (Eq, Show, Generic) @@ -102,7 +102,7 @@ data Blob data BlobPair = BlobPair { before :: Maybe Blob - , after :: Maybe Blob + , after :: Maybe Blob } deriving stock (Eq, Show, Generic) deriving anyclass (Message, Named, FromJSON) @@ -116,9 +116,9 @@ newtype ParseTreeSymbolResponse = ParseTreeSymbolResponse { files :: [File] } data File = File - { path :: T.Text + { path :: T.Text , language :: Language - , symbols :: [Symbol] + , symbols :: [Symbol] } deriving stock (Generic, Eq, Show) deriving anyclass (Named, Message, ToJSON) @@ -126,9 +126,9 @@ data File data Symbol = Symbol { symbol :: T.Text - , kind :: T.Text - , line :: T.Text - , span :: Maybe Span + , kind :: T.Text + , line :: T.Text + , span :: Maybe Span } deriving stock (Generic, Eq, Show) deriving anyclass (Named, Message, ToJSON) @@ -216,7 +216,7 @@ instance Primitive ChangeType where data TOCSummaryError = TOCSummaryError { error :: T.Text - , span :: Maybe Span + , span :: Maybe Span } deriving stock (Eq, Show, Generic) deriving anyclass (Message, Named, ToJSON) @@ -295,7 +295,7 @@ instance MimeRender PlainText PingResponse where -- data Position = Position - { line :: Int + { line :: Int , column :: Int } deriving stock (Eq, Ord, Show, Generic) @@ -303,7 +303,7 @@ data Position = Position data Span = Span { start :: Maybe Position - , end :: Maybe Position + , end :: Maybe Position } deriving stock (Eq, Ord, Show, Generic) deriving anyclass (Message, Named, ToJSON)