Re: [gentoo-dev] haskell-cabal.eclass suggestions

2012-03-31 Thread Sergei Trofimovich
On Fri, 30 Mar 2012 13:59:10 +0200 ""Paweł Hajdan, Jr."" wrote: > > echo 'import Distribution.Simple; main = defaultMainWithHooks > > defaultUserHooks' \ > > > $setupdir/Setup.hs > > } > > I think there should be || die after echo, to catch out-of-disk-space > problems. Ok :] > >

[gentoo-dev] haskell-cabal.eclass suggestions

2012-03-30 Thread Paweł Hajdan, Jr.
Those are really just nits, but I thought I'd share what I've noticed. > cabal-mksetup() { > local setupdir > > if [[ -n $1 ]]; then > setupdir=$1 > else > setupdir=${S} > fi > > rm -f "${setupdir}"/Setup.{lhs,hs} > > echo 'import Distribution.Simple; mai