-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add language extension autocomplete (#128)
`LANGUAGE` and any language extensions in GHC 9.6.3 are available as auto-completions when writing a pragma. The list of language extensions is hardcoded should be updated when migrating to a new GHC version. --------- Co-authored-by: Greg Baimetov <gb@Gregs-MacBook-Pro.local> Co-authored-by: Greg Baimetov <gb@Gregs-MacBook-Pro-4.local>
- Loading branch information
1 parent
262386a
commit b84539f
Showing
5 changed files
with
311 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,280 @@ | ||
{-# LANGUAGE OverloadedStrings #-} | ||
{-# LANGUAGE Strict #-} | ||
|
||
module StaticLS.IDE.AllExtensions (allExtensions) where | ||
|
||
import Data.Text | ||
|
||
allExtensions :: [Text] | ||
allExtensions = | ||
[ "Haskell98" | ||
, "Haskell2010" | ||
, "GHC2021" | ||
, "Unsafe" | ||
, "Trustworthy" | ||
, "Safe" | ||
, "AllowAmbiguousTypes" | ||
, "NoAllowAmbiguousTypes" | ||
, "AlternativeLayoutRule" | ||
, "NoAlternativeLayoutRule" | ||
, "AlternativeLayoutRuleTransitional" | ||
, "NoAlternativeLayoutRuleTransitional" | ||
, "Arrows" | ||
, "NoArrows" | ||
, "AutoDeriveTypeable" | ||
, "NoAutoDeriveTypeable" | ||
, "BangPatterns" | ||
, "NoBangPatterns" | ||
, "BinaryLiterals" | ||
, "NoBinaryLiterals" | ||
, "CApiFFI" | ||
, "NoCApiFFI" | ||
, "CPP" | ||
, "NoCPP" | ||
, "CUSKs" | ||
, "NoCUSKs" | ||
, "ConstrainedClassMethods" | ||
, "NoConstrainedClassMethods" | ||
, "ConstraintKinds" | ||
, "NoConstraintKinds" | ||
, "DataKinds" | ||
, "NoDataKinds" | ||
, "DatatypeContexts" | ||
, "NoDatatypeContexts" | ||
, "DefaultSignatures" | ||
, "NoDefaultSignatures" | ||
, "DeriveAnyClass" | ||
, "NoDeriveAnyClass" | ||
, "DeriveDataTypeable" | ||
, "NoDeriveDataTypeable" | ||
, "DeriveFoldable" | ||
, "NoDeriveFoldable" | ||
, "DeriveFunctor" | ||
, "NoDeriveFunctor" | ||
, "DeriveGeneric" | ||
, "NoDeriveGeneric" | ||
, "DeriveLift" | ||
, "NoDeriveLift" | ||
, "DeriveTraversable" | ||
, "NoDeriveTraversable" | ||
, "DerivingStrategies" | ||
, "NoDerivingStrategies" | ||
, "DerivingVia" | ||
, "NoDerivingVia" | ||
, "DisambiguateRecordFields" | ||
, "NoDisambiguateRecordFields" | ||
, "DoAndIfThenElse" | ||
, "NoDoAndIfThenElse" | ||
, "BlockArguments" | ||
, "NoBlockArguments" | ||
, "DoRec" | ||
, "NoDoRec" | ||
, "DuplicateRecordFields" | ||
, "NoDuplicateRecordFields" | ||
, "FieldSelectors" | ||
, "NoFieldSelectors" | ||
, "EmptyCase" | ||
, "NoEmptyCase" | ||
, "EmptyDataDecls" | ||
, "NoEmptyDataDecls" | ||
, "EmptyDataDeriving" | ||
, "NoEmptyDataDeriving" | ||
, "ExistentialQuantification" | ||
, "NoExistentialQuantification" | ||
, "ExplicitForAll" | ||
, "NoExplicitForAll" | ||
, "ExplicitNamespaces" | ||
, "NoExplicitNamespaces" | ||
, "ExtendedDefaultRules" | ||
, "NoExtendedDefaultRules" | ||
, "FlexibleContexts" | ||
, "NoFlexibleContexts" | ||
, "FlexibleInstances" | ||
, "NoFlexibleInstances" | ||
, "ForeignFunctionInterface" | ||
, "NoForeignFunctionInterface" | ||
, "FunctionalDependencies" | ||
, "NoFunctionalDependencies" | ||
, "GADTSyntax" | ||
, "NoGADTSyntax" | ||
, "GADTs" | ||
, "NoGADTs" | ||
, "GHCForeignImportPrim" | ||
, "NoGHCForeignImportPrim" | ||
, "GeneralizedNewtypeDeriving" | ||
, "NoGeneralizedNewtypeDeriving" | ||
, "GeneralisedNewtypeDeriving" | ||
, "NoGeneralisedNewtypeDeriving" | ||
, "ImplicitParams" | ||
, "NoImplicitParams" | ||
, "ImplicitPrelude" | ||
, "NoImplicitPrelude" | ||
, "ImportQualifiedPost" | ||
, "NoImportQualifiedPost" | ||
, "ImpredicativeTypes" | ||
, "NoImpredicativeTypes" | ||
, "IncoherentInstances" | ||
, "NoIncoherentInstances" | ||
, "TypeFamilyDependencies" | ||
, "NoTypeFamilyDependencies" | ||
, "InstanceSigs" | ||
, "NoInstanceSigs" | ||
, "ApplicativeDo" | ||
, "NoApplicativeDo" | ||
, "InterruptibleFFI" | ||
, "NoInterruptibleFFI" | ||
, "JavaScriptFFI" | ||
, "NoJavaScriptFFI" | ||
, "KindSignatures" | ||
, "NoKindSignatures" | ||
, "LambdaCase" | ||
, "NoLambdaCase" | ||
, "LexicalNegation" | ||
, "NoLexicalNegation" | ||
, "LiberalTypeSynonyms" | ||
, "NoLiberalTypeSynonyms" | ||
, "LinearTypes" | ||
, "NoLinearTypes" | ||
, "MagicHash" | ||
, "NoMagicHash" | ||
, "MonadComprehensions" | ||
, "NoMonadComprehensions" | ||
, "MonoLocalBinds" | ||
, "NoMonoLocalBinds" | ||
, "DeepSubsumption" | ||
, "NoDeepSubsumption" | ||
, "MonomorphismRestriction" | ||
, "NoMonomorphismRestriction" | ||
, "MultiParamTypeClasses" | ||
, "NoMultiParamTypeClasses" | ||
, "MultiWayIf" | ||
, "NoMultiWayIf" | ||
, "NumericUnderscores" | ||
, "NoNumericUnderscores" | ||
, "NPlusKPatterns" | ||
, "NoNPlusKPatterns" | ||
, "NamedFieldPuns" | ||
, "NoNamedFieldPuns" | ||
, "NamedWildCards" | ||
, "NoNamedWildCards" | ||
, "NegativeLiterals" | ||
, "NoNegativeLiterals" | ||
, "HexFloatLiterals" | ||
, "NoHexFloatLiterals" | ||
, "NondecreasingIndentation" | ||
, "NoNondecreasingIndentation" | ||
, "NullaryTypeClasses" | ||
, "NoNullaryTypeClasses" | ||
, "NumDecimals" | ||
, "NoNumDecimals" | ||
, "OverlappingInstances" | ||
, "NoOverlappingInstances" | ||
, "OverloadedLabels" | ||
, "NoOverloadedLabels" | ||
, "OverloadedLists" | ||
, "NoOverloadedLists" | ||
, "OverloadedStrings" | ||
, "NoOverloadedStrings" | ||
, "PackageImports" | ||
, "NoPackageImports" | ||
, "ParallelArrays" | ||
, "NoParallelArrays" | ||
, "ParallelListComp" | ||
, "NoParallelListComp" | ||
, "PartialTypeSignatures" | ||
, "NoPartialTypeSignatures" | ||
, "PatternGuards" | ||
, "NoPatternGuards" | ||
, "PatternSignatures" | ||
, "NoPatternSignatures" | ||
, "PatternSynonyms" | ||
, "NoPatternSynonyms" | ||
, "PolyKinds" | ||
, "NoPolyKinds" | ||
, "PolymorphicComponents" | ||
, "NoPolymorphicComponents" | ||
, "QuantifiedConstraints" | ||
, "NoQuantifiedConstraints" | ||
, "PostfixOperators" | ||
, "NoPostfixOperators" | ||
, "QuasiQuotes" | ||
, "NoQuasiQuotes" | ||
, "QualifiedDo" | ||
, "NoQualifiedDo" | ||
, "Rank2Types" | ||
, "NoRank2Types" | ||
, "RankNTypes" | ||
, "NoRankNTypes" | ||
, "RebindableSyntax" | ||
, "NoRebindableSyntax" | ||
, "OverloadedRecordDot" | ||
, "NoOverloadedRecordDot" | ||
, "OverloadedRecordUpdate" | ||
, "NoOverloadedRecordUpdate" | ||
, "RecordPuns" | ||
, "NoRecordPuns" | ||
, "RecordWildCards" | ||
, "NoRecordWildCards" | ||
, "RecursiveDo" | ||
, "NoRecursiveDo" | ||
, "RelaxedLayout" | ||
, "NoRelaxedLayout" | ||
, "RelaxedPolyRec" | ||
, "NoRelaxedPolyRec" | ||
, "RoleAnnotations" | ||
, "NoRoleAnnotations" | ||
, "ScopedTypeVariables" | ||
, "NoScopedTypeVariables" | ||
, "StandaloneDeriving" | ||
, "NoStandaloneDeriving" | ||
, "StarIsType" | ||
, "NoStarIsType" | ||
, "StaticPointers" | ||
, "NoStaticPointers" | ||
, "Strict" | ||
, "NoStrict" | ||
, "StrictData" | ||
, "NoStrictData" | ||
, "TemplateHaskell" | ||
, "NoTemplateHaskell" | ||
, "TemplateHaskellQuotes" | ||
, "NoTemplateHaskellQuotes" | ||
, "StandaloneKindSignatures" | ||
, "NoStandaloneKindSignatures" | ||
, "TraditionalRecordSyntax" | ||
, "NoTraditionalRecordSyntax" | ||
, "TransformListComp" | ||
, "NoTransformListComp" | ||
, "TupleSections" | ||
, "NoTupleSections" | ||
, "TypeApplications" | ||
, "NoTypeApplications" | ||
, "TypeData" | ||
, "NoTypeData" | ||
, "TypeInType" | ||
, "NoTypeInType" | ||
, "TypeFamilies" | ||
, "NoTypeFamilies" | ||
, "TypeOperators" | ||
, "NoTypeOperators" | ||
, "TypeSynonymInstances" | ||
, "NoTypeSynonymInstances" | ||
, "UnboxedTuples" | ||
, "NoUnboxedTuples" | ||
, "UnboxedSums" | ||
, "NoUnboxedSums" | ||
, "UndecidableInstances" | ||
, "NoUndecidableInstances" | ||
, "UndecidableSuperClasses" | ||
, "NoUndecidableSuperClasses" | ||
, "UnicodeSyntax" | ||
, "NoUnicodeSyntax" | ||
, "UnliftedDatatypes" | ||
, "NoUnliftedDatatypes" | ||
, "UnliftedFFITypes" | ||
, "NoUnliftedFFITypes" | ||
, "UnliftedNewtypes" | ||
, "NoUnliftedNewtypes" | ||
, "ViewPatterns" | ||
, "NoViewPatterns" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters