Skip to content

Instantly share code, notes, and snippets.

@mitchty
Created April 12, 2018 02:31
Show Gist options
  • Save mitchty/aedcad6d673bb8f5cd457693ee82c8eb to your computer and use it in GitHub Desktop.
Save mitchty/aedcad6d673bb8f5cd457693ee82c8eb to your computer and use it in GitHub Desktop.
derp:~# which ghc
/usr/bin/ghc
derp:~# ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.0.2
derp:~# apk info ghc
ghc-8.0.2-r6 description:
The Glasgow Haskell Compiler
ghc-8.0.2-r6 webpage:
http://haskell.org
ghc-8.0.2-r6 installed size:
600635392
derp:~# echo 'main :: IO (); main = putStrLn "hi"' > /tmp/hi.hs
derp:~# ghc --make /tmp/hi.hs
[1 of 1] Compiling Main ( /tmp/hi.hs, /tmp/hi.o )
Linking /tmp/hi ...
derp:~# /tmp/hi
hi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment