16 lines
335 B
Haskell
16 lines
335 B
Haskell
module Main where
|
|
|
|
import Foreign (Int32)
|
|
|
|
|
|
foreign export ccall "hello" hello :: IO Int32
|
|
|
|
hello :: IO Int32
|
|
hello = do
|
|
putStrLn "hello from Haskell!!!"
|
|
pure 0
|
|
|
|
main :: IO ()
|
|
main = error "defining main shouldn't be necessary since we set -no-hs-main, \
|
|
\but HLS is yelling at me and i just want to calm her down."
|