Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
haddock
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
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
Stephen Judkins
haddock
Commits
e6aa8fb4
Commit
e6aa8fb4
authored
6 years ago
by
Matthew Pickering
Committed by
Alex Biehl
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Load plugins when starting a GHC session (#905)
Fixes #900
parent
9765c10a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
haddock-api/src/Haddock.hs
+5
-1
5 additions, 1 deletion
haddock-api/src/Haddock.hs
with
5 additions
and
1 deletion
haddock-api/src/Haddock.hs
+
5
−
1
View file @
e6aa8fb4
...
...
@@ -75,6 +75,7 @@ import Packages
import
Panic
(
handleGhcException
)
import
Module
import
FastString
import
qualified
DynamicLoading
--------------------------------------------------------------------------------
-- * Exception handling
...
...
@@ -437,7 +438,10 @@ withGhc' libDir flags ghcActs = runGhc (Just libDir) $ do
-- that may need to be re-linked: Haddock doesn't do any
-- dynamic or static linking at all!
_
<-
setSessionDynFlags
dynflags''
ghcActs
dynflags''
hscenv
<-
GHC
.
getSession
dynflags'''
<-
liftIO
(
DynamicLoading
.
initializePlugins
hscenv
dynflags''
)
_
<-
setSessionDynFlags
dynflags'''
ghcActs
dynflags'''
where
-- ignore sublists of flags that start with "+RTS" and end in "-RTS"
...
...
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