Explorar o código

Create first compiling haskell file

DricomDragon %!s(int64=5) %!d(string=hai) anos
pai
achega
6083b6e250
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      t1.hs

+ 4 - 0
t1.hs

@@ -0,0 +1,4 @@
+f n = n * n
+
+main :: IO ()
+main = print ( f 5 )