Skip to content

Instantly share code, notes, and snippets.

@carlosgruiz-dev
Last active August 6, 2018 17:54
Show Gist options
  • Save carlosgruiz-dev/50601ae296f59b2ecc952a8d83d2c72b to your computer and use it in GitHub Desktop.
Save carlosgruiz-dev/50601ae296f59b2ecc952a8d83d2c72b to your computer and use it in GitHub Desktop.
Haskell Stack Mega - Tutorial

Haskell Stack Mega - Tutorial"

source: https://www.youtube.com/watch?v=sRonIB8ZStw

  • google for haskell stack
  • install stack
  • find stack bin path (stack path)
  • add stack bin path to user PATH variable
  • building wreq using stack
  • find wreq in hackage
  • stack build wreq (library)
  • stack build lens (library)
  • stack install pandoc (cli program)
  • program is installed at ~/.local/bin
  • the actual package installer is part of ghc (ghc-pkg)
  • cabal and stack are utilities to manage package installations
  • if a project has no stack.yaml we must use $ stack init
  • if stack build fails add dependencies to the stack.yaml file
  • if exit with error number 1 search for library dependencies.
  • if exit with error number 9 probably we run out of memory.
  • to find the package that provides some .so file we can use apt-file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment