![]() ![]() Using dynamic linking typically results in faster builds and smaller disk and RAM usage (by sharing pages between multiple running Haskell programs), and will free you from troubleshooting cross-GHC mixing errors. Therefore, to link successfully one must configure GHC, Cabal and Stack for dynamic linking, as the default is to use static linking. Since version 8.0.2-1, the Arch ghc package and all haskell-* packages in community provide only dynamically linked libraries. If you are not sure which tool to choose, try to install both and see which one works best for you. Many Haskell developers use Cabal, while many others prefer Stack. Tip: Both Cabal and Stack are stable and mature build tools. Stack is another build tool focused on curated snapshots and source packages from Stackage (a stable subset of Hackage that provides curated sets (snapshots) of packages known to work well with each other). Cabal is the classic build tool focused on dependency resolution and source packages from Hackage (Haskell community's central package archive of open source software). cabal-install or stack - Build tools that rely on GHC to compile Haskell sources.There are several implementations available, but the one used most (which is now de facto the reference) is the GHC (Glasgow Haskell Compiler). To install the latest version of Haskell, install the following packages: On the other side, building AUR packages or developing software require a compiler and build tools to be installed. ![]() ![]() There is nothing special required to run a binary (already compiled) software, like xmonad or pandoc-cli. Haskell generates machine code that can be run natively on Linux. Otherwise, if you want to install Haskell binaries from the official website without using any packages from Arch repositories, skip to the section #Alternate installations.Note that this might install several hundred haskell-* packages into your system. If you want to install Haskell from Arch official repositories using pacman, continue reading #Native installation, #Configuration and #Package management.Note: There are several choices for Haskell installation, one is supported by Arch Linux, while others are officially supported by Haskell for any Linux distributions. ![]()
0 Comments
Leave a Reply. |