How

Yesterday I tried to install a Haskell-module via cabal, in order to get aquainted with the installation of modules in Haskell. I had to install cabal first. My System: Windows 7 Haskell-Compiler Version: GHC 7.0.2 (Link ) Cabal: I will describe the process step by step, hoping that you may specify my wrong doings during both cabal and the package installation with cabal. The procedure:. Installed Haskell Compiler GHC 7.0.2 Starting GHCi it from the Windows 7 start menu, gives following output in a DOS-window: GHCi, version 7.0.2: Website:?

There's an interesting Haskell package on Hackage you'd like to try. How do you install it on your system? 1 Installing packages using cabal. By far the easiest way. Modules Loading modules. A Haskell module is a collection of related functions, types and typeclasses. A Haskell program is a collection of modules where the main.

Loading package ghc-prim. Loading package integer-gmp. Loading package base. Loading package ffi-1.0. Prelude So far so good: Every function inside the base packages is accessible and functions just the way its supposed to. Conclusion: The GHCi installation contains no erroneous steps. Downloaded cabal.exe from source (see introduction), copied it into C: ghc ghc-7.0.2 bin (which is added into%Path%-variables).

Give More Feedback

Downloaded cabal-install-0.8.2.tar.gz as the site advises users that the packeage is needed for a clean install. Opened new dos prompt window. Typed cabal update (as advised by site), it did update the list and returned to user prompt mode. Typed cd C: pathwhere cabal-install-0.8.2.tar.gz (switched into the directory where the cabal-install file is located). Typed cabal install cabal-install-0.8.2, thereafter the installation started creating following output in the dos-box: Resolving dependencies. Downloading containers-0.3.0.0. Configuring containers-0.3.0.0.

Preprocessing library containers-0.3.0.0. Building containers-0.3.0.0. 1 of 7 Compiling Data.Sequence ( Data Sequence.hs, dist build Data Sequence.o ) 2 of 7 Compiling Data.Set ( Data Set.hs, dist build Data Set.o ) 3 of 7 Compiling Data.Map ( Data Map.hs, dist build Data Map.o ) 4 of 7 Compiling Data.IntSet ( Data IntSet.hs, dist build Data IntSet.o ) 5 of 7 Compiling Data.IntMap ( Data IntMap.hs, dist build Data IntMap.o ) 6 of 7 Compiling Data.Tree ( Data Tree.hs, dist build Data Tree.o ) 7 of 7 Compiling Data.Graph ( Data Graph.hs, dist build Data Graph.o ) cabal: ar is required but it could not be found.

See More On Stackoverflow

Downloading filepath-1.1.0.4. Configuring filepath-1.1.0.4. Preprocessing library filepath-1.1.0.4. Building filepath-1.1.0.4. 1 of 3 Compiling System.FilePath.Posix ( System FilePath Posix.hs, dist build System FilePath Posix.o ) 2 of 3 Compiling System.FilePath.Windows ( System FilePath Windows.hs, dist build System FilePath Windows.o ) 3 of 3 Compiling System.FilePath ( System FilePath.hs, dist build System FilePath.o ) cabal: ar is required but it could not be found. Downloading parsec-2.1.0.1.

Configuring parsec-2.1.0.1. Preprocessing library parsec-2.1.0.1. Building parsec-2.1.0.1.