Skip to content

Commit e8bcff5

Browse files
committed
Support for CPP and Literate (Bird-style) modules
1 parent a79b707 commit e8bcff5

26 files changed

+1339
-961
lines changed

haskell-language-server.cabal

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 2.2
22
category: Development
33
name: haskell-language-server
4-
version: 0.5.0.0
4+
version: 0.5.1.0
55
synopsis: LSP server for GHC
66
description:
77
Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme>
@@ -85,19 +85,20 @@ executable haskell-language-server
8585
Ide.Plugin.Eval
8686
Ide.Plugin.Eval.Code
8787
Ide.Plugin.Eval.CodeLens
88-
Ide.Plugin.Eval.Debug
8988
Ide.Plugin.Eval.GHC
9089
Ide.Plugin.Eval.Parse.Option
9190
Ide.Plugin.Eval.Parse.Parser
9291
Ide.Plugin.Eval.Parse.Section
9392
Ide.Plugin.Eval.Parse.Token
9493
Ide.Plugin.Eval.Tutorial
9594
Ide.Plugin.Eval.Types
95+
Ide.Plugin.Eval.Util
9696
Ide.Plugin.Example
9797
Ide.Plugin.Example2
9898
Ide.Plugin.Floskell
9999
Ide.Plugin.Fourmolu
100100
Ide.Plugin.ImportLens
101+
Ide.Plugin.ModuleName
101102
Ide.Plugin.Ormolu
102103
Ide.Plugin.Pragmas
103104
Ide.Plugin.Retrie
@@ -157,7 +158,7 @@ executable haskell-language-server
157158
, retrie >=0.1.1.0
158159
, safe-exceptions
159160
, shake >=0.17.5
160-
, stylish-haskell ^>=0.11
161+
, stylish-haskell ^>=0.12
161162
, temporary
162163
, text
163164
, syb
@@ -277,6 +278,7 @@ test-suite func-test
277278
FunctionalLiquid
278279
HieBios
279280
Highlight
281+
ModuleName
280282
Progress
281283
Reference
282284
Rename
Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
{-# OPTIONS_GHC -Wwarn #-}
2-
{-# LANGUAGE DeriveAnyClass #-}
3-
{-# LANGUAGE DeriveGeneric #-}
41
{-# LANGUAGE DuplicateRecordFields #-}
5-
{-# LANGUAGE LambdaCase #-}
6-
{-# LANGUAGE NamedFieldPuns #-}
7-
{-# LANGUAGE OverloadedStrings #-}
8-
{-# LANGUAGE RecordWildCards #-}
9-
{-# LANGUAGE ScopedTypeVariables #-}
10-
{-# LANGUAGE TupleSections #-}
2+
{-# LANGUAGE ScopedTypeVariables #-}
3+
{-# OPTIONS_GHC -Wwarn #-}
4+
115
{- |
126
A plugin inspired by:
137
@@ -19,20 +13,26 @@ A plugin inspired by:
1913
2014
See the "Ide.Plugin.Eval.Tutorial" module for a full introduction to the plugin functionality.
2115
-}
22-
module Ide.Plugin.Eval
23-
( descriptor
24-
)
25-
where
16+
module Ide.Plugin.Eval (
17+
descriptor,
18+
) where
2619

2720
import qualified Ide.Plugin.Eval.CodeLens as CL
28-
import Ide.Types (PluginDescriptor (pluginCodeLensProvider, pluginCommands, pluginId),
29-
PluginId, defaultPluginDescriptor)
21+
import Ide.Types (
22+
PluginDescriptor (
23+
pluginCodeLensProvider,
24+
pluginCommands,
25+
pluginId
26+
),
27+
PluginId,
28+
defaultPluginDescriptor,
29+
)
3030

3131
-- |Plugin descriptor
3232
descriptor :: PluginId -> PluginDescriptor
3333
descriptor plId =
34-
(defaultPluginDescriptor plId)
35-
{ pluginId = plId,
36-
pluginCodeLensProvider = Just CL.codeLens,
37-
pluginCommands = [CL.evalCommand]
38-
}
34+
(defaultPluginDescriptor plId)
35+
{ pluginId = plId
36+
, pluginCodeLensProvider = Just CL.codeLens
37+
, pluginCommands = [CL.evalCommand]
38+
}

0 commit comments

Comments
 (0)