@@ -0,0 +1,22 @@
+dist
+dist-*
+cabal-dev
+*.o
+*.hi
+*.chi
+*.chs.h
+*.dyn_o
+*.dyn_hi
+.hpc
+.hsenv
+.cabal-sandbox/
+cabal.sandbox.config
+*.prof
+*.aux
+*.hp
+*.eventlog
+.stack-work/
+cabal.project.local
+cabal.project.local~
+.HTF/
+.ghc.environment.*
@@ -0,0 +1,4 @@
+module Main (main) where -- not needed in interpreter, is the default in a module file
+
+main :: IO () -- the compiler can infer this type definition
+main = putStrLn "Hello, World!"
@@ -0,0 +1,2 @@
+main::IO()
+main=putStrLn "Hello, World!"