Add support for ASM foreign files (.s) in TH (#16180)
[ghc.git] / libraries / ghc-boot-th / GHC / ForeignSrcLang / Type.hs
1 {-# LANGUAGE DeriveGeneric #-}
2 module GHC.ForeignSrcLang.Type
3 ( ForeignSrcLang(..)
4 ) where
5
6 import Prelude -- See note [Why do we import Prelude here?]
7 import GHC.Generics (Generic)
8
9 -- | Foreign formats supported by GHC via TH
10 data ForeignSrcLang
11 = LangC -- ^ C
12 | LangCxx -- ^ C++
13 | LangObjc -- ^ Objective C
14 | LangObjcxx -- ^ Objective C++
15 | LangAsm -- ^ Assembly language (.s)
16 | RawObject -- ^ Object (.o)
17 deriving (Eq, Show, Generic)