Re: Any standards in packaging haskell libraries?

2009-04-21 Thread Iustin Pop
Super, that saved me the trouble :) I'll then wait until it's in unstable. thanks! iustin On Mon, Apr 20, 2009 at 10:41:57AM -0700, Clifford Beshers wrote: > I just packaged that using cabal-debian last week. The debian directory is > here: > > http://src.seereason.com/debian/json-debian/ >

Re: Using packages.conf.d for Haskell libraries

2009-04-21 Thread Kari Pahula
On Tue, Apr 21, 2009 at 01:36:00PM +0100, Magnus Therning wrote: > On Tue, Apr 21, 2009 at 1:27 PM, Kari Pahula wrote: > > I think it's pretty much analogous to dpkg's usage of /var/lib. > > (Possibly stupid question) Why /var/lib instead of /etc? Because it's meant to be manipulated with a pro

Re: Using packages.conf.d for Haskell libraries

2009-04-21 Thread Magnus Therning
On Tue, Apr 21, 2009 at 1:27 PM, Kari Pahula wrote: > On Tue, Apr 21, 2009 at 09:29:08AM +, Joachim Breitner wrote: >> > Also, I'd like to move packages.conf to /var/lib/ghc-$version/ in the >> > next version.  IMHO, it's more of a /var than a /usr thing. >> >> Why should it be /var? These fil

Re: Using packages.conf.d for Haskell libraries

2009-04-21 Thread Kari Pahula
On Tue, Apr 21, 2009 at 09:29:08AM +, Joachim Breitner wrote: > > Also, I'd like to move packages.conf to /var/lib/ghc-$version/ in the > > next version. IMHO, it's more of a /var than a /usr thing. > > Why should it be /var? These files are not supposed to be modified, > right? I???d expect

Re: Using packages.conf.d for Haskell libraries

2009-04-21 Thread Joachim Breitner
Hi, Am Dienstag, den 21.04.2009, 12:01 +0300 schrieb Kari Pahula: > I'd say that using that is much simpler than either calling ghc-pkg in > individual postinst/postrm or using triggers in the ghc6 package. > packages.conf.d is already supported by both ghc and ghc-pkg. Great! > Also, I'd like t

Using packages.conf.d for Haskell libraries

2009-04-21 Thread Kari Pahula
Reading the source can pay off. I found this gem in compiler/main/Packages.lhs: > getSystemPackageConfigs :: DynFlags -> IO [FilePath] > getSystemPackageConfigs dflags = do > -- System one always comes first >let system_pkgconf = systemPackageConfig dflags > > -- allow packag