File tree 4 files changed +13
-3
lines changed
src/Development/IDE/Types
4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1
1
-- Copyright (c) 2019 The DAML Authors. All rights reserved.
2
2
-- SPDX-License-Identifier: Apache-2.0
3
+ {-# LANGUAGE CPP #-}
3
4
{-# LANGUAGE NamedFieldPuns #-}
4
5
{-# LANGUAGE OverloadedStrings #-}
5
6
module Main (main ) where
@@ -23,7 +24,11 @@ import Ide.Types (PluginDescriptor (pluginNotificat
23
24
import Language.LSP.Server as LSP
24
25
import Language.LSP.Types as LSP
25
26
import qualified Plugins
27
+ #if MIN_VERSION_prettyprinter(1,7,0)
26
28
import Prettyprinter (Pretty (pretty ), vsep )
29
+ #else
30
+ import Data.Text.Prettyprint.Doc (Pretty (pretty ), vsep )
31
+ #endif
27
32
28
33
data Log
29
34
= LogIdeMain IdeMain. Log
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ cabal-version: 2.4
2
2
build-type : Simple
3
3
category : Development
4
4
name : ghcide
5
- version : 1.7.0.0
5
+ version : 1.7.0.1
6
6
license : Apache-2.0
7
7
license-file : LICENSE
8
8
author : Digital Asset and Ghcide contributors
@@ -72,7 +72,7 @@ library
72
72
optparse-applicative,
73
73
parallel,
74
74
prettyprinter-ansi-terminal,
75
- prettyprinter >= 1.7 ,
75
+ prettyprinter >= 1.6 ,
76
76
random,
77
77
regex-tdfa >= 1.3.1.0 ,
78
78
retrie,
Original file line number Diff line number Diff line change 1
1
-- Copyright (c) 2019 The DAML Authors. All rights reserved.
2
2
-- SPDX-License-Identifier: Apache-2.0
3
3
4
+ {-# LANGUAGE CPP #-}
4
5
{-# LANGUAGE RankNTypes #-}
5
6
-- | This is a compatibility module that abstracts over the
6
7
-- concrete choice of logging framework so users can plug in whatever
@@ -54,8 +55,13 @@ import Language.LSP.Types (LogMessageParams (..),
54
55
MessageType (.. ),
55
56
SMethod (SWindowLogMessage , SWindowShowMessage ),
56
57
ShowMessageParams (.. ))
58
+ #if MIN_VERSION_prettyprinter(1,7,0)
57
59
import Prettyprinter as PrettyPrinterModule
58
60
import Prettyprinter.Render.Text (renderStrict )
61
+ #else
62
+ import Data.Text.Prettyprint.Doc as PrettyPrinterModule
63
+ import Data.Text.Prettyprint.Doc.Render.Text (renderStrict )
64
+ #endif
59
65
import System.IO (Handle , IOMode (AppendMode ),
60
66
hClose , hFlush , hSetEncoding ,
61
67
openFile , stderr , utf8 )
Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ extra-deps:
65
65
- monad-dijkstra-0.1.1.2
66
66
- opentelemetry-0.6.1
67
67
- opentelemetry-extra-0.6.1
68
- - prettyprinter-1.7.1
69
68
- refinery-0.4.0.0
70
69
- retrie-1.1.0.0
71
70
- semigroups-0.18.5
You can’t perform that action at this time.
0 commit comments