haskell/highlights: Match pattern as a keyword

Sample:
-- | Smart constructor that deduplicates plugins
pattern IdePlugins :: [PluginDescriptor ideState] -> IdePlugins ideState
pattern IdePlugins{ipMap} <- IdePlugins_ (sortOn (Down . pluginPriority) . HashMap.elems -> ipMap) _
  where
    IdePlugins ipMap = IdePlugins_{ipMap_ = HashMap.fromList $ (pluginId &&& id) <$> ipMap
                                  , lookupCommandProvider = lookupPluginId ipMap
                                  }
This commit is contained in:
Jade Lovelace 2022-09-18 12:54:18 -07:00 committed by Stephan Seitz
parent 0289160c96
commit aa736f5f36

View file

@ -81,6 +81,7 @@
"in"
"class"
"instance"
"pattern"
"data"
"newtype"
"family"