[arch-haskell] Some changes to the github repos

Rémy Oudompheng remyoudompheng at gmail.com
Sat Oct 12 07:36:58 UTC 2013


On 2010/10/14 Magnus Therning <magnus at therning.org> wrote:
> Remy has done some rather low-level work on the archlinux git repo,
> splitting it into two repos.  Unfortunately this means that all
> existing clones are likely to be very broken at the moment.  Given how
> soon after the creation of the github repos this was done, I'm not
> expecting it to cause major grief.
>
> Also note that this *only* affects the archlinux repo, the habs and
> cabal2arch repos are untouched by this.

Hello,

Basic functions that output a topologically sorted list of package
names, that is the order in which packages are meant to be built
according to dependencies, are now implemented.

I wrote an example script to show how it works: it is meant to work
with my copy of the archlinux library [*]

import Distribution.ArchLinux.SrcRepo
import System.IO
import System.Directory
import Control.Monad

main = do
  dot <- getCurrentDirectory
  repo <- getRepoFromDir dot
  case repo of
    Nothing -> return ()
    Just r -> foldM (\a -> \s -> putStrLn s) () (dumpContentsTopo r)

[*] git://github.com/remyoudompheng/archhaskell.git

-- 
Rémy



More information about the arch-haskell mailing list