mirror of
https://github.com/github/semantic.git
synced 2024-12-27 00:44:57 +03:00
🔥 modeForLanguage.
This commit is contained in:
parent
9568ff6f2d
commit
ac961fb945
@ -13,7 +13,6 @@ module Data.Language
|
||||
, PerLanguageModes(..)
|
||||
, defaultLanguageModes
|
||||
, LanguageMode(..)
|
||||
, modeForLanguage
|
||||
) where
|
||||
|
||||
import Data.Aeson
|
||||
@ -157,10 +156,3 @@ data LanguageMode
|
||||
= ALaCarte
|
||||
| Precise
|
||||
deriving (Bounded, Enum, Eq, Ord, Read, Show)
|
||||
|
||||
modeForLanguage :: PerLanguageModes -> Language -> LanguageMode
|
||||
modeForLanguage modes = \case
|
||||
Java -> Precise
|
||||
JSON -> Precise
|
||||
Python -> pythonMode modes
|
||||
_ -> ALaCarte
|
||||
|
Loading…
Reference in New Issue
Block a user