Re: Building GHC on Windows

2009-02-21 Thread Felix Martini
Sigbjorn Finne: > ok. Surely you could just temporarily set it as such, followed by config'ing > it for that repo only > rather than have it be global? I suspect tweaking that one file instead will > just be the first of > many such tweaks.. Yes, that would be the best solution if i want to downlo

Re: Building GHC on Windows

2009-02-21 Thread Sigbjorn Finne
Felix Martini wrote: Sigbjorn Finne: It works fine, but be mindful of how 'git' handles crlf translations on Windows. Having run into this a couple of times, it certainly looks the likely cause. Felix may want to try cloning as follows: foo$ git config --global core.autocrlf false foo$ git

Re: Building GHC on Windows

2009-02-21 Thread Felix Martini
Sigbjorn Finne: > It works fine, but be mindful of how 'git' handles crlf translations on > Windows. > Having run into this a couple of times, it certainly looks the likely cause. > Felix > may want to try cloning as follows: > > foo$ git config --global core.autocrlf false > foo$ git clone http:

Re: Building GHC on Windows

2009-02-21 Thread Sigbjorn Finne
Simon Marlow wrote: Felix Martini wrote: . All this is likely trivial to fix but at the same time these little roadblocks may also explain why few developers on Windows contribute code to GHC and Haskell. I haven't tried sync-all on Windows - can anyone help out here? It works fine, but

Re: Re[2]: Compiler optimizations questions for ghc 6.10...

2009-02-21 Thread Bertram Felgenhauer
Krasimir Angelov wrote: > How mod is affected by the change in quot? Currently mod is defined as: > > a `mod` b > | b == 0 = divZeroError > | a == minBound && b == (-1) = overflowError > | otherwise = a `modInt` b > > and modInt is defined

Re: Re[2]: Compiler optimizations questions for ghc 6.10...

2009-02-21 Thread Krasimir Angelov
How mod is affected by the change in quot? Currently mod is defined as: a `mod` b | b == 0 = divZeroError | a == minBound && b == (-1) = overflowError | otherwise = a `modInt` b and modInt is defined via remInt# which is primitive. Did you

Re: Re[2]: Compiler optimizations questions for ghc 6.10...

2009-02-21 Thread Bertram Felgenhauer
Krasimir Angelov wrote: > Well I actually did, almost. I added this function: > > quotX :: Int -> Int -> Int > a `quotX` b >| b == 0 = error "divZeroError" >| b == (-1) && a == minBound = error "overflowError" >| otherwise = a `quotInt` b > > It d