From Mageia wiki
Jump to: navigation, search

How to port GHC to Mageia 9

You need the following packages for GHC to build in Mageia 9:

alex (to be installed using cabal) array (to be installed using cabal), it needs base as well automake autoconf c++ gcc git happy (to be installed using cabal) hsc2hs (to be installed using cabal) hscolour (to be installed using cabal) make xz

Now, at this time of writing this you need to run the following command as a normal user:

 curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

This will setup ghcup for you including cabal.

Follow the instructions on the screen depending on what your needs are.

Next you install the version of ghc that you plan to build by using ghcup tui and selecting the ghc version of your choice, remember to check if the cabal version installed supports that ghc version before you install it, configure will tell you which version you either need to upgrade or downgrade to.