Skip to content

Commit

Permalink
Joseph/support 9 4 x build (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephsumabat authored Jan 4, 2024
1 parent 66ec866 commit 1a85258
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies:
- errors >= 2.3.0 && < 2.4
- extra >= 1.7.12 && < 1.8
- filepath >= 1.4.1 && < 1.5
- ghc >= 9.4.4 && < 9.7
- ghc >= 9.4.3 && < 9.7
- ghc-paths >= 0.1.0 && < 0.2
- ghcide >= 2.5.0 && < 2.6.0
- hiedb >= 0.4.2 && < 0.5
Expand Down
5 changes: 3 additions & 2 deletions src/StaticLS/IDE/Workspace/Symbol.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module StaticLS.IDE.Workspace.Symbol where

import Control.Monad.IO.Class (MonadIO)
import Control.Monad.Trans.Maybe (MaybeT (..), hoistMaybe)
import Control.Monad.Trans.Maybe (MaybeT (..))
import Data.Maybe (catMaybes, fromMaybe)
import qualified Data.Text as T
import Development.IDE.GHC.Util (printOutputable)
Expand All @@ -12,6 +12,7 @@ import GHC.Plugins hiding ((<>))
import qualified HieDb
import Language.LSP.Protocol.Types
import StaticLS.HIE.File (hieFilePathToSrcFilePath)
import StaticLS.Maybe
import StaticLS.StaticEnv (HasStaticEnv, runHieDbMaybeT)

symbolInfo :: (HasCallStack, HasStaticEnv m, MonadIO m) => T.Text -> m [SymbolInformation]
Expand All @@ -31,7 +32,7 @@ defRowToSymbolInfo (HieDb.DefRow{..} HieDb.:. _) = runMaybeT $ do
srcFile <- hieFilePathToSrcFilePath defSrc
let file = toUri srcFile
loc = Location file range
kind <- hoistMaybe mKind
kind <- toAlt mKind
pure $
SymbolInformation
{ _name = printOutputable defNameOcc
Expand Down
6 changes: 3 additions & 3 deletions static-ls.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ library
, errors >=2.3.0 && <2.4
, extra >=1.7.12 && <1.8
, filepath >=1.4.1 && <1.5
, ghc >=9.4.4 && <9.7
, ghc >=9.4.3 && <9.7
, ghc-paths >=0.1.0 && <0.2
, ghcide >=2.5.0 && <2.6.0
, hiedb >=0.4.2 && <0.5
Expand Down Expand Up @@ -110,7 +110,7 @@ executable static-ls
, errors >=2.3.0 && <2.4
, extra >=1.7.12 && <1.8
, filepath >=1.4.1 && <1.5
, ghc >=9.4.4 && <9.7
, ghc >=9.4.3 && <9.7
, ghc-paths >=0.1.0 && <0.2
, ghcide >=2.5.0 && <2.6.0
, hiedb >=0.4.2 && <0.5
Expand Down Expand Up @@ -164,7 +164,7 @@ test-suite static-ls-test
, errors >=2.3.0 && <2.4
, extra >=1.7.12 && <1.8
, filepath >=1.4.1 && <1.5
, ghc >=9.4.4 && <9.7
, ghc >=9.4.3 && <9.7
, ghc-paths >=0.1.0 && <0.2
, ghcide >=2.5.0 && <2.6.0
, hiedb >=0.4.2 && <0.5
Expand Down

0 comments on commit 1a85258

Please sign in to comment.