Hi, I had a ghc-7.8.2 system working. I installed a new version of bytestring, which broken the package system, as "ghc-7.8.2" is shown in braces under ghc-pkg, and I cannot compile anything now. I tried to do "ghc-pkg unregister", but that did not help (it did remove bytestring from the ghc-pkg list, but did not recover ghc-7.8.2, which still shows in braces)
The problem is that I installed the 7.8.2 binary long ago in a local directory from source distribution, using another version that I installed in local directory too, but now I have deleted that other version, so I have no version from which to make a source build again. I tried to download a binary version, but they all fail to install because of different dependencies such as LIBC >=2.7 (I only have 2.5), libffi.so.5, or libedit.so.0. I even tried to build a libedit.so.0, but the downloaded old binary refuses to use it.
I do not have sudo on this machine, so I am limited to what I can install into my local directory.
So is there any way I can recover my 7.8.2 installation? Thanks!submitted by diyu60607
[link] [21 comments]
I came up with the need of using a function that retrieved both minimal and maximal value in a list. I haven’t found that function yet, so I wrote a little implementation:minmax :: (Ord a) => [a] -> (a,a) minmax  = error "empty list: minmax" minmax (x:xs) = foldl (\(mn,mx) a -> (min mn a,max mx a)) (x,x) xs
I guess that can also be written as minmax :: (Ord a,Foldable f).
What do you think? Should such a function be in Data.Ord, Data.List or whatever?submitted by _skp
[link] [18 comments]
I am in the east coast ny area around 9pm Eastern Time. Is hackage down for anyone else?submitted by tempforfather
[link] [2 comments]
The hackage server ran out of disk space temporarily, and when I restarted it, there seemed to be some sort of error with the transaction log. I'm investigating.
I'm currently restoring backups and stuff. This will at worst move back time to to early September 25th, so if you uploaded something, please spread the word.submitted by aseipp
[link] [41 comments]
TeamGHC is doing an amazing job developing GHC, but I'm sure they won't mind some extra manpower.Here's how you can help.
Clone the GHC source code (~1')
$ git clone git://github.com/ghc/ghc.git # This doesn't clone any submodules. See building link below for that.
Find a TODO or FIXME that you think you can solve (~10', compiler/utils or libraries/base is a good place to start)
$ git grep -I -P -i '\b(TODO|FIXME|XXX)\b'
Work it (max. 1 day, ask #ghc on irc for help if you get stuck)
$ git commit -a -m 'Fix FIXME'
Sign up for Phabricator and install Arcanist (~15')
Submit a code review to Phabricator (~1', example: https://phabricator.haskell.org/D213)
$ arc diff
Wait for Harbormaster to build and validate your commit (~45 minutes)
Wait for someone from TeamGHC to review and push your commit (1-2 weeks)
Go to 2.
Build GHC yourself
Edit: I changed the regexp. Now it's 874 TODOs, not that it really matters.
Edit2: Changed advice about not building yourself, removed link to slow Trac query.
Edit 3: Note: GHC master currently doesn't build on OS X. Please try commit 5ed12810 from a few days ago, or remove the import of Control.Monad from the file libraries/base/GHC/Event/KQueue.hs.
Edit 4: Please use the github mirror for cloning. GHC servers can't handle the load! Good sign!submitted by thomie
[link] [101 comments]
Is there a well-developed way to avoid this situation? I find myself having to correct people every time somebody asks me what I program, to the point where occasionally I say something like "Hache-askell".submitted by kvanberendonck
[link] [14 comments]