Рет қаралды 31
So far, all functions we have been using in our Haskell code have been coming from the base package that ships with GHC. We have now reached a point where we would like to use other packages that come from Hackage, the Haskell package repository. We show how we can turn our own developments into packages by defining a .cabal package description file, and how in doing that, we can specify dependencies on other Haskell packages. Tools such as the cabal command line tool or Haskell Language Server can then interpret these package description files for us, install missing dependencies, and invoke GHC in such a way that it can find all the modules we use in our code.
Course site with self-test questions: teaching.well-typed.com/intro...