1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 17:05:33 +03:00

🔥 modeForLanguage.

This commit is contained in:
Rob Rix 2019-10-07 11:07:52 -04:00
parent 9568ff6f2d
commit ac961fb945
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -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