Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 May 2010 11:31:58 +0200
From:      Gabor PALI <pgj@FreeBSD.org>
To:        Alexey Dokuchaev <danfe@freebsd.org>
Cc:        cvs-ports@freebsd.org, cvs-all@freebsd.org, ports-committers@freebsd.org
Subject:   Re: cvs commit: ports/archivers/hs-zip-archive Makefile distinfo  pkg-descr pkg-plist ports/devel/hs-binary Makefile distinfo pkg-descr pkg-plist ports/devel/hs-darcs/files patch-Setup.lhs patch-darcs.cabal ports/devel/hs-darcs Makefile distinfo pkg-d
Message-ID:  <AANLkTinQogTaWYGJxd9Pz1r9pvjyDna71vQVbMDfcHEN@mail.gmail.com>
In-Reply-To: <20100525031628.GB8034@FreeBSD.org>
References:  <AANLkTil2ds1NMcOVfF6_R3bCkIb1SPOnLMkagLWt90nk@mail.gmail.com> <20100524220501.GF7380@hades.panopticon> <AANLkTikBXrbZpHaLJN3eVA80RQfJHLOaBLFFK1CNbnh7@mail.gmail.com> <20100525031628.GB8034@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello danfe,

Thank you for chiming in and commenting on this.

2010/5/25 Alexey Dokuchaev <danfe@freebsd.org>:
> Normally `hs-' prefix (similar to `p5-' or `py-') should indicate packages that extend
> Haskell functionality as developing framework; some of us call those
> "batteries".

Hm, actually they are called "batteries" in case of Haskell as well
like "The Haskell Platform: Batteries Included" [1] :)  In that sense
pandoc, xmonad, and darcs just batteries in a framework.  FreeBSD
Haskell ports together might be called as the "The FreeBSD Haskell
Platform: With Ports" :P  Haskell tends to be more than a programming
language, it has its own "distribution" and approach to things.

So, when the user wants to install xmonad, she can do the following
things (let us assume Haskell Platform is ported):

First (vendor) case:

# pkg_add -r haskell-platform
# cabal install xmonad

Second (our) case:

# pkg_add -r hs-xmonad

I agree that the `hs-` prefix might not be the right one here, since
there are ports with that prefix which does not have Cabal version
(for instance x11-toolkits/hs-gtk2hs, but its conversion to Cabal is
in progress).  Perhaps we should use a different prefix (like `hc-`)?


> Careful thinking of how to construct PORTNAME and PKGNAME can, I believe,
> make naming scheme nice and clean while playing nice with Cabal/HDB
> conventions at the same time.  [..]  Our Ports framework is quite capable of handling this task.

Yes, it is already implemented by a mapping in lang/ghc/bsd.hackage.mk.


> end-user software should not be prefixed, as end users probably don't care whether Darcs or Xmonad are written in
> Haskell (well, at least until they start tinkering with it) and having
> `hs-' prefix for those is confusing.

Most of the time, darcs is used by people who wants to work with
Haskell sources, since it also part of the "Haskell folklore", so as
alex, happy, haddock, and hscolour.  On the other hand, darcs is very
different from classical version control systems, since it works with
patches in a very unusual way (far from being compatible with cvs,
svn, hg, or even git), and it has performance issues so it is not
widely spread (but David Roundy and his team have done a very good job
on that recently).

I primarily use darcs to access the sources of the Glasgow Haskell
Compiler (lang/ghc) and various hackages (i.e. extensions to Haskell).
 But I would be happy (and not hs-happy :P) to hear about others who
are using darcs for things are not related to Haskell at all.


> mangling it is bad and makes it both harder to find in Ports Collection and introduces
> gratuitous difference between different software repositories out there

To me, finding Haskell Cabal ports gets to be easier this way, since
all the thing I need to do is just to grep for "hs-".


> (would Xmonad user coming from, say, Ubuntu expect that it is called
> `hs-xmonad' in FreeBSD)?

I would be the happiest person if users are starting to migrate from
Ubuntu to FreeBSD :)  But if somebody has already used xmonad on
Ubuntu, she has already fiddled with it.  She only needs to do a vague
search at FreshPorts [2] and voila!  As a last resort, x11-wm/xmonad
still points to x11-wm/hs-xmonad at FreshPorts (the page that publicly
linked usually).

Anyways, I will interview our currents users on ports@ and
freebsd-haskell@haskell.org to see whether they like it or not (and
perhaps check out how other distributions handle this question).  The
problem here that I did not receive any attention or feedback (until
this commit) on my work, possibly due to the small user base.


Cheers,
:g

[1] http://hackage.haskell.org/platform/contents.html
[2] http://www.freshports.org/search.php?query=xmonad&search=go&num=10&stype=name&method=match&deleted=excludedeleted&start=1&casesensitivity=caseinsensitive



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinQogTaWYGJxd9Pz1r9pvjyDna71vQVbMDfcHEN>