Cutting down GHC installation to bare minimum

2010-04-27 Thread leledumbo
I notice that many of the installed libs aren't required for learning Haskell. What libs are required so I can get the bare minimum version of GHC? Also, is there any automatic way so that I don't have to manually delete the folders and edit package.conf? -- View this message in context: http://

Re: Cutting down GHC installation to bare minimum

2010-04-27 Thread leledumbo
Yes, I agree with both of you. But that is if I want to use Haskell as a development tool. The target in learning by reinventing the wheel is the ability to think declaratively when solving problems and to improve an already found solution. For instance, Data.List module provides permutations func

small and compact ghc distribution

2008-05-14 Thread leledumbo
Currently, GHC distribution is VERY BIG (about 410 MB). 2 Things that I noticed which contributed most of this problem are: libraries (about 220 MB) and GCC and friends compiler (including perl, ar, as, ld, etc). I'm a college student and I just want to learn functional programming with Haskell. N

Re: small and compact ghc distribution

2008-05-14 Thread leledumbo
Bulat Ziganshin-2 wrote: > > 1. you can use winhugs - it's more user-friendly. and need only ~10mb > in stripped installation > That's what I'm using for now, but I need GHC's compilation capability. Bulat Ziganshin-2 wrote: > > 2. you can try to delete all the unneeded libs from ghc distro.

Error building GHC 6.8.3 with MinGW 4.2.1-2 dw2

2008-06-30 Thread leledumbo
I try to build a lite version (e.g. no extra libs) of GHC 6.8.3, I'm using MinGW GCC 4.2.1-2 with dwarf-2 exception and pre-compiled GHC 6.8.3. Here's my configure: sh configure --prefix=/c/ghc-new CFLAGS='-s -O2' LDFLAGS='-s -O2' --with-gmp-includes=/usr/local/gmp/include --with-gmp-libraries=/us

Is -fvia-C still needed?

2008-09-24 Thread leledumbo
I notice that speed from code generated by -fasm and -fvia-C isn't significant, furthermore -fvia-C takes longer time. So, why ghc still needs gcc (at least on Windows)? -- View this message in context: http://www.nabble.com/Is--fvia-C-still-needed--tp19663119p19663119.html Sent from the Haskell

Re: Is -fvia-C still needed?

2008-09-25 Thread leledumbo
The reason why I don't like gcc shipped with ghc distribution is that I waste my harddisk space for two same compilers, only differ in version (I use 4.3.2, ghc ships 3.4.2). And because both are in my PATH, it sometimes behaves unexpectedly. For instance, I try to delete the shipped gcc because I

Re: Is -fvia-C still needed?

2008-10-05 Thread leledumbo
> We could theoretically ship a cut-down GHC bundle with no gcc ... What about shipping two versions? One with bundled MinGW and other without > Having fully-functional-out-of-the-box GHC installers is very useful ... Good idea. -- View this message in context: http://www.nabble.com/Is--fvia

Re: Newby question re quicksort

2009-04-26 Thread leledumbo
I think you miss something important here: quickslop :: (Ord a) => [a] ->[a] quickslop [] = [] quickslop (x:xs) = quickslop [a | a <- xs, a <= x] ++ [x] ++ quickslop [b | b <- xs, b > x] -- View this message in context: http://www.nabble.com/Newby-question-re-quicksort-tp23250159p23250345.

Failed to bootstrap 6.10.4 with itself on Windows (MinGW)

2009-07-21 Thread leledumbo
I've just installed 6.10.4 and try to rebuild a minimal version from source, but the rebuild process failed. It stops with message: Capability.c: error converting to pointer type on stage1. configure command: ./configure --prefix=/c/ghc CFLAGS=-O4 LDFLAGS=-s -- View this message in context: h

Re: Failed to bootstrap 6.10.4 with itself on Windows (MinGW)

2009-07-23 Thread leledumbo
> I presume you're on Windows? MSYS or Cygwin? Which version of gcc? MSYS 1.0.11 and MinGW GCC 4.4.0. -- View this message in context: http://www.nabble.com/Failed-to-bootstrap-6.10.4-with-itself-on-Windows-%28MinGW%29-tp24599789p24620500.html Sent from the Haskell - Glasgow-haskell-users mai

Re: Failed to bootstrap 6.10.4 with itself on Windows (MinGW)

2009-07-23 Thread leledumbo
> I presume you're on Windows? MSYS or Cygwin? Which version of gcc? MSYS 1.0.11 and MinGW GCC 4.4.0 (it's installed and on PATH it's put before ghc, but I don't know whether ghc will use this one or the one bundled with it). -- View this message in context: http://www.nabble.com/Failed-to-bo

Re: Failed to bootstrap 6.10.4 with itself on Windows (MinGW)

2009-07-23 Thread leledumbo
OK, I've tried ghc's supplied gcc, too (not so easy, I need to set some environment variables first) and here are the results: With ghc's gcc: D:/Sources/ghc/ghc-6.10.4/ghc/stage1-inplace/ghc.exe -package rts-1.0 -optc-O2 - odir dist/build -c cbits/longlong.c -o dist/build/cbits/longlong.o (echo