Skip to content

Commit c163dc8

Browse files
authored
Merge branch 'master' into garbage-collection
2 parents 3630ab4 + 8b5a1e0 commit c163dc8

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs/installation.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ sudo pacman -S haskell-language-server
5555
In this case, `haskell-language-server` is compiled against the GHC distributed to Arch Linux, so you will need maintain a system wide Haskell development environment, and install GHC from `pacman` as well.
5656
See [ArchWiki](https://wiki.archlinux.org/index.php/Haskell) for the details of Haskell infrastructure on Arch Linux.
5757

58+
## Fedora
59+
60+
Binary packages for Fedora are available from [this Copr repo](https://copr.fedorainfracloud.org/coprs/petersen/haskell-language-server),
61+
built against the official Fedora ghc package.
62+
5863
## FreeBSD
5964

6065
HLS is available for installation from official binary packages. Use

plugins/hls-tactics-plugin/src/Wingman/StaticPlugin.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import Development.IDE.GHC.Compat.Util
1313
import GHC.LanguageExtensions.Type (Extension(EmptyCase, QuasiQuotes))
1414
import Generics.SYB
1515
import Ide.Types
16+
import Plugins (purePlugin)
1617

1718
staticPlugin :: DynFlagsModifications
1819
staticPlugin = mempty
@@ -66,8 +67,12 @@ allowEmptyCaseButWithWarning =
6667
#if __GLASGOW_HASKELL__ >= 808
6768
metaprogrammingPlugin :: StaticPlugin
6869
metaprogrammingPlugin =
69-
StaticPlugin $ PluginWithArgs (defaultPlugin { parsedResultAction = worker }) []
70+
StaticPlugin $ PluginWithArgs pluginDefinition []
7071
where
72+
pluginDefinition = defaultPlugin
73+
{ parsedResultAction = worker
74+
, pluginRecompile = purePlugin
75+
}
7176
worker :: Monad m => [CommandLineOption] -> ModSummary -> HsParsedModule -> m HsParsedModule
7277
worker _ _ pm = pure $ pm { hpm_module = addMetaprogrammingSyntax $ hpm_module pm }
7378
#endif

0 commit comments

Comments
 (0)