diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2019-01-15 13:14:45 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-01-20 21:35:20 -0500 |
commit | f035504b573b9684d53a6d035f8726672c1b0190 (patch) | |
tree | 5cc4037684d8967aa7b4808130cd9514d90a4501 /libraries/ghc-boot-th | |
parent | 6e7aa5e937b18a45ee39c8c67b7a2f7350b89a66 (diff) | |
download | haskell-f035504b573b9684d53a6d035f8726672c1b0190.tar.gz |
Add support for ASM foreign files (.s) in TH (#16180)
Diffstat (limited to 'libraries/ghc-boot-th')
-rw-r--r-- | libraries/ghc-boot-th/GHC/ForeignSrcLang/Type.hs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libraries/ghc-boot-th/GHC/ForeignSrcLang/Type.hs b/libraries/ghc-boot-th/GHC/ForeignSrcLang/Type.hs index 3106141de7..c40f6f91df 100644 --- a/libraries/ghc-boot-th/GHC/ForeignSrcLang/Type.hs +++ b/libraries/ghc-boot-th/GHC/ForeignSrcLang/Type.hs @@ -6,6 +6,12 @@ module GHC.ForeignSrcLang.Type import Prelude -- See note [Why do we import Prelude here?] import GHC.Generics (Generic) +-- | Foreign formats supported by GHC via TH data ForeignSrcLang - = LangC | LangCxx | LangObjc | LangObjcxx | RawObject + = LangC -- ^ C + | LangCxx -- ^ C++ + | LangObjc -- ^ Objective C + | LangObjcxx -- ^ Objective C++ + | LangAsm -- ^ Assembly language (.s) + | RawObject -- ^ Object (.o) deriving (Eq, Show, Generic) |