Machiko Ono |
Thursday, December 8, 2016
Wednesday, December 7, 2016
Tuesday, December 6, 2016
Tim Brailsford: Computerphile: Origins of the Web
Monday, December 5, 2016
macOS Sierra: Haskell (programming language): Hello, World! Program
Command:
$ cat helloworld.hs
Result:
main = putStrLn "Hello, World!"
Command:
$ ghc helloworld.hs
Result:
[1 of 1] Compiling Main ( helloworld.hs, helloworld.o )
Linking helloworld ...
Command:
$ ./helloworld
Result:
Hello, World!
$ cat helloworld.hs
Result:
main = putStrLn "Hello, World!"
Command:
$ ghc helloworld.hs
Result:
[1 of 1] Compiling Main ( helloworld.hs, helloworld.o )
Linking helloworld ...
Command:
$ ./helloworld
Result:
Hello, World!
macOS Sierra: Installing Haskell
Command:
$ brew install ghc cabal-install
Result:
==> Downloading https://homebrew.bintray.com/bottles/ghc-8.0.1_3.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring ghc-8.0.1_3.sierra.bottle.tar.gz
==> Using the sandbox
==> /usr/local/Cellar/ghc/8.0.1_3/bin/ghc-pkg recache
🍺 /usr/local/Cellar/ghc/8.0.1_3: 5,775 files, 1G
==> Downloading https://homebrew.bintray.com/bottles/cabal-install-1.24.0.1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cabal-install-1.24.0.1.sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
🍺 /usr/local/Cellar/cabal-install/1.24.0.1: 7 files, 27.7M
$ brew install ghc cabal-install
Result:
==> Downloading https://homebrew.bintray.com/bottles/ghc-8.0.1_3.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring ghc-8.0.1_3.sierra.bottle.tar.gz
==> Using the sandbox
==> /usr/local/Cellar/ghc/8.0.1_3/bin/ghc-pkg recache
🍺 /usr/local/Cellar/ghc/8.0.1_3: 5,775 files, 1G
==> Downloading https://homebrew.bintray.com/bottles/cabal-install-1.24.0.1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cabal-install-1.24.0.1.sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
🍺 /usr/local/Cellar/cabal-install/1.24.0.1: 7 files, 27.7M
Subscribe to:
Posts (Atom)