How do you install packages/libraries without Cabal or Cabal-Install?

Cabal-install has a shell script that does this. If you download it from hackage and install it, you can start bootstrap. Sh to install cabal-install You can then use it to install other packages.

Cabal-install has a shell script that does this. If you download it from hackage and install it, you can start bootstrap. Sh to install cabal-install.

You can then use it to install other packages.

1 Thanks, I was aware of that but it seemed from RWH that you need parsec and network installed first (book. Realworldhaskell. Org/read/…), and from the docs HTTP installed first before you can run bootstrap.sh.

I see now bootstrap. Sh does all that for you. That's what I get for doing this at 3am.

– ByronGibson Nov 17 at 17:35.

There are two different packages: Cabal and cabal-install. Cabal is a library, and cabal-install is an executable named cabal. To install a package, cabal-install is an optional convenience wrapper around Cabal, but Cabal is required.

According to hackage.haskell.org/trac/ghc/wiki/Commen... , Cabal is a 'zero-boot' package, so when you build GHC, Cabal and its dependencies are built for you automatically. You can use ghc-pkg executable to check which packages are already installed: # ghc-pkg list Check if Cabal is in the list after you build GHC. If yes, you can install more packages without cabal-install using this documentation: http://haskell.org/haskellwiki/Cabal/How_to_install_a_Cabal_package I suggest you to install cabal-install first, and then install everything else using cabal-install executable.

A usual commandine for global installation is this: # runhaskell Setup configure # runhaskell Setup build # sudo runhaskell Setup install Unpack a package tarball and run the commands in the folder with Setup. Hs or Setup. Lhs files.

Note that a per-user non-root installation is also supported - Use runhaskell Setup configure --user When you install cabal executable and its dependencies this way, use cabal install {package-name} to install more packages. Note that Haskell Platform exists mostly because of the pain of installing cabal-install by yourself.

Thanks, I see I was using runhaskell Setup incorrectly. Not firing on all cylinders at 3am. Much appreciated!

– ByronGibson Nov 17 at 17:36.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions