diff options
Diffstat (limited to 'src/Main.hs')
| -rw-r--r-- | src/Main.hs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Main.hs b/src/Main.hs new file mode 100644 index 0000000..c43ef13 --- /dev/null +++ b/src/Main.hs @@ -0,0 +1,14 @@ +module Main (main) where +import Control.Monad.Writer (execWriter, MonadWriter (tell)) + +foreign export ccall call_in :: IO () +call_in :: IO () +call_in = putStrLn $ execWriter $ do + tell "Yo," + tell " This was " + tell "Called" + tell " From" + tell " C!!" + +main :: IO () +main = putStrLn "This should be dynamically linked!\n" |