2 İşlemeler e3e790264b ... 9aa4e711e0

Yazar SHA1 Mesaj Tarih
  Hacker GNU 9aa4e711e0 code writed! 2 yıl önce
  Hacker GNU 30de66d6f1 .gitignore added! 2 yıl önce
3 değiştirilmiş dosya ile 28 ekleme ve 0 silme
  1. 22 0
      .gitignore
  2. 4 0
      src/hello.hs
  3. 2 0
      src/helloworld.hs

+ 22 - 0
.gitignore

@@ -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.*

+ 4 - 0
src/hello.hs

@@ -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!"

+ 2 - 0
src/helloworld.hs

@@ -0,0 +1,2 @@
+main::IO()
+main=putStrLn "Hello, World!"