Skip to content

Commit 993b59c

Browse files
committed
Remove dependency on Cabal
Cabal as a dependency is a pretty hefty price to pay for simply getting the build architecture, which already seems to be in System.Info. Probably just accidentally copied over from when HIE used Cabal for dealing with .cabal files
1 parent 416d462 commit 993b59c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Diff for: haskell-language-server.cabal

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ library
6262
, aeson
6363
, binary
6464
, bytestring
65-
, Cabal
6665
, cabal-helper >= 1.1
6766
, containers
6867
, data-default

Diff for: src/Ide/Version.hs

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ module Ide.Version where
77

88
import Data.Maybe
99
import Development.GitRev (gitCommitCount)
10-
import Distribution.System (buildArch)
11-
import Distribution.Text (display)
1210
import Options.Applicative.Simple (simpleVersion)
1311
import Ide.Cradle (execProjectGhc)
1412
import qualified HIE.Bios.Types as Bios
@@ -26,7 +24,7 @@ hlsVersion =
2624
-- See https://github.com/commercialhaskell/stack/issues/792
2725
, [" (" ++ commitCount ++ " commits)" | commitCount /= ("1"::String) &&
2826
commitCount /= ("UNKNOWN" :: String)]
29-
, [" ", display buildArch]
27+
, [" ", arch]
3028
, [" ", hlsGhcDisplayVersion]
3129
]
3230

0 commit comments

Comments
 (0)