Remove Repetition (#32485)
This commit is contained in:
committed by
Christopher McCormack
parent
b1970ab602
commit
5ef22135cb
@ -47,9 +47,9 @@ The last type value is the return value, in the case above it takes a single int
|
|||||||
main :: IO ()
|
main :: IO ()
|
||||||
main = print "Hello Haskell :)"
|
main = print "Hello Haskell :)"
|
||||||
```
|
```
|
||||||
Save above code in a file named "hello.hs" and save.
|
Save the code above in a file named "hello.hs".
|
||||||
|
|
||||||
To compile the Hello World example, this will convert our haskell code to machine understandable bytecodes.
|
You can use ghc to convert our haskell code to machine understandable bytecodes.
|
||||||
```shell
|
```shell
|
||||||
stack ghc hello.hs
|
stack ghc hello.hs
|
||||||
./hello
|
./hello
|
||||||
|
Reference in New Issue
Block a user