Re: Weekly IRC meeting?

2008-07-22 Thread Thomas M. DuBuisson
> By all means start a more general Haskell meeting too, but I want to keep 
> this one for GHC.  The VCS debate is about what system GHC should use, not 
> the community as a whole.  The HLP discussion is on topic because it is so 
> closely related to how we release/package/ship GHC.

Ah, I assumed this included Hackage.  How presumptuous of me.

Thomas

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Advice sought for 6.9 and Arrow/Category

2008-07-22 Thread Duncan Coutts

On Tue, 2008-07-22 at 04:57 -0500, Spencer Janssen wrote:

> > I'm testing for ghc version.  Could I somehow test for the base-library
> > version instead?   - Conal
> 
> Yes.  Here is a snippet from binary.cabal:
> 
> flag applicative-in-base
> 
> library
>   if flag(applicative-in-base)
> build-depends: base >= 2.0
> cpp-options: -DAPPLICATIVE_IN_BASE
>   else
> build-depends: base < 2.0

This is the sort of example where our Cabal syntactic sugar proposal
helps a bit:

library
 if package(base >= 2.0)
   cpp-options: -DAPPLICATIVE_IN_BASE

So two lines rather than six and you don't need to understand the
relational semantics so clearly to make sense of it. Now if only we'd
get round to implementing it.

Duncan

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Advice sought for 6.9 and Arrow/Category

2008-07-22 Thread Spencer Janssen
On Tue, Jul 15, 2008 at 05:45:55PM +0200, Conal Elliott wrote:
> By the way, here's how I'm changing my code to work with the new and old
> arrow interface.  I'd appreciate any suggested improvements.
> 
> The old code (example):
> 
> import Control.Arrow
> 
> [...]
> 
> instance Arrow (~>) => Arrow (Bijection (~>)) where
>   Bi ab ba >>> Bi bc cb = Bi (ab >>> bc) (cb >>> ba)
>   [...]
> 
> The new code:
> 
> #if __GLASGOW_HASKELL__ >= 609
> import Control.Category
> import Prelude hiding ((.), id)
> #endif
> import Control.Arrow
> 
> [...]
> 
> #if __GLASGOW_HASKELL__ >= 609
> instance Category (~>) => Category (Bijection (~>)) where
>   id = Bi id id
>   Bi bc cb . Bi ab ba = Bi (bc . ab) (ba . cb)
> #endif
> 
> instance Arrow (~>) => Arrow (Bijection (~>)) where
> #if __GLASGOW_HASKELL__ < 609
>   Bi ab ba >>> Bi bc cb = Bi (ab >>> bc) (cb >>> ba)
> #endif
> [...]
> 
> I'm testing for ghc version.  Could I somehow test for the base-library
> version instead?   - Conal

Yes.  Here is a snippet from binary.cabal:

flag applicative-in-base

library
  if flag(applicative-in-base)
build-depends: base >= 2.0
cpp-options: -DAPPLICATIVE_IN_BASE
  else
build-depends: base < 2.0


Cheers,
Spencer Janssen
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Weekly IRC meeting?

2008-07-22 Thread Simon Marlow

Thomas M. DuBuisson wrote:
Ian and I talked about possibly trying a different time - 9pm UK time, 
which would be slightly less friendly to us in the UK (I have my work/life 
balance to think about you know :-) but more friendly to people in the US.

I, for one, am happy with the current time; changing it should always be an 
option though.

For this week's discussion, one topic on the table is whether to switch 
version control systems, which I'm sure will make for a lively debate :)

Perhaps we could have an ever evolving wiki page with the
when/where/agenda/logs.  I've started a rough one [1]; I put it in the
general Haskell wiki because these topics certainly aren't confined to
GHC.

Thomas

[1] http://haskell.org/haskellwiki/Weekly_Meeting


Hmm, well I did intend these meetings to be focussed mainly on issues 
relating to GHC, rather than a general Haskell discussion which could be 
held on #haskell separately.


By all means start a more general Haskell meeting too, but I want to keep 
this one for GHC.  The VCS debate is about what system GHC should use, not 
the community as a whole.  The HLP discussion is on topic because it is so 
closely related to how we release/package/ship GHC.


Cheers,
Simon
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users