Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
head.hackage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
head.hackage
Commits
7381e454
Commit
7381e454
authored
1 year ago
by
Sebastian Graf
Browse files
Options
Downloads
Patches
Plain Diff
Update ghcide for
ghc@7a08a025
parent
81c34a2a
No related branches found
No related tags found
1 merge request
!373
Update packages that derive Lift for TH
Pipeline
#97039
passed
1 year ago
Stage: generate
Stage: dispatch
Pipeline: head.hackage
#97040
Changes
1
Pipelines
18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
patches/ghcide-2.6.0.0.patch
+24
-0
24 additions, 0 deletions
patches/ghcide-2.6.0.0.patch
with
24 additions
and
0 deletions
patches/ghcide-2.6.0.0.patch
+
24
−
0
View file @
7381e454
...
...
@@ -377,3 +377,27 @@ index c9c3de1..ad5f7be 100644
get_flds_gadt (RecConGADT flds _) = get_flds (reLoc flds)
#else
get_flds_gadt (RecConGADT flds) = get_flds (reLoc flds)
diff --git a/src/Development/IDE/Plugin/TypeLenses.hs b/src/Development/IDE/Plugin/TypeLenses.hs
index 512477c..f0d4f61 100644
--- a/src/Development/IDE/Plugin/TypeLenses.hs
+++ b/src/Development/IDE/Plugin/TypeLenses.hs
@@ -1,6 +1,7 @@
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE OverloadedLabels #-}
{-# LANGUAGE TypeFamilies #-}
+{-# LANGUAGE CPP #-}
-- | An HLS plugin to provide code lenses for type signatures
module Development.IDE.Plugin.TypeLenses (
@@ -319,7 +320,11 @@
gblBindingType (Just hsc) (Just gblEnv) = do
let name = idName identifier
hasSig name $ do
env <- tcInitTidyEnv
+#if MIN_VERSION_ghc(9,11,0)
+ let ty = tidyOpenType env (idType identifier)
+#else
let (_, ty) = tidyOpenType env (idType identifier)
+#endif
pure $ GlobalBindingTypeSig name (printName name <> " :: " <> showDoc (pprSigmaType ty)) (name `elemNameSet` exports)
patToSig p = do
let name = patSynName p
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment