mirror of
https://github.com/github/semantic.git
synced 2025-01-04 21:47:07 +03:00
Revert "Define Language as a GADT."
This reverts commit e5606b132d3ded64a55f3268c978f9adb227fc4b.
This commit is contained in:
parent
aff60ae06a
commit
b8d3c26759
@ -1,4 +1,4 @@
|
|||||||
{-# LANGUAGE DataKinds, GADTs #-}
|
{-# LANGUAGE DataKinds #-}
|
||||||
module Language where
|
module Language where
|
||||||
|
|
||||||
import Data.Record
|
import Data.Record
|
||||||
@ -9,12 +9,12 @@ import qualified Syntax as S
|
|||||||
import Term
|
import Term
|
||||||
|
|
||||||
-- | A programming language.
|
-- | A programming language.
|
||||||
data Language where
|
data Language =
|
||||||
C :: Language
|
C
|
||||||
Go :: Language
|
| Go
|
||||||
Markdown :: Language
|
| Markdown
|
||||||
Ruby :: Language
|
| Ruby
|
||||||
TypeScript :: Language -- ^ Also JavaScript.
|
| TypeScript -- ^ Also JavaScript.
|
||||||
deriving (Show, Eq, Read)
|
deriving (Show, Eq, Read)
|
||||||
|
|
||||||
-- | Returns a Language based on the file extension (including the ".").
|
-- | Returns a Language based on the file extension (including the ".").
|
||||||
|
Loading…
Reference in New Issue
Block a user