diff options
author | Adam Gundry <adam@well-typed.com> | 2015-10-16 13:58:52 +0100 |
---|---|---|
committer | Adam Gundry <adam@well-typed.com> | 2015-10-16 13:58:52 +0100 |
commit | 5a1b4f814f74ec1c48152d97523744518e212777 (patch) | |
tree | 7c2207ecacbd37f12c78dbcf9d4334827164e0fb /testsuite/tests/rts/T10672/Main.hs | |
parent | 6757950cdd8bb0af0355539987ee78401a6a8f6b (diff) | |
parent | 808bbdf08058785ae5bc59b5b4f2b04951d4cbbf (diff) | |
download | haskell-5a1b4f814f74ec1c48152d97523744518e212777.tar.gz |
Merge remote-tracking branch 'origin/master' into wip/orf-rebootwip/orf-reboot
Conflicts:
compiler/rename/RnNames.hs
compiler/typecheck/TcRnMonad.hs
utils/haddock
Diffstat (limited to 'testsuite/tests/rts/T10672/Main.hs')
-rw-r--r-- | testsuite/tests/rts/T10672/Main.hs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/rts/T10672/Main.hs b/testsuite/tests/rts/T10672/Main.hs new file mode 100644 index 0000000000..eb07b8cfea --- /dev/null +++ b/testsuite/tests/rts/T10672/Main.hs @@ -0,0 +1,14 @@ +-- Copyright (C) 2015, Luke Iannini + +{-# LANGUAGE TemplateHaskell #-} +{-# LANGUAGE ForeignFunctionInterface #-} + +module Main where +import Printf ( pr ) + +foreign import ccall "talkToCxx" talkToCxx :: IO () + +main :: IO () +main = do + putStrLn ( $(pr "Hello From Template Haskell!") ) + talkToCxx |