Proposal: infixr 9 `Compose`

Bas van Dijk v.dijk.bas at
Fri Sep 13 13:13:38 CEST 2013

The deadline for this has passed and no objections were raised.

Ross, do you like me to make a patch for transformers or do you like
to add the following to Data.Functor.Compose yourself?

 infixr 9 `Compose`   -- analogous to the fixity of (.)



On 30 August 2013 17:44, Bas van Dijk <v.dijk.bas at> wrote:
> I was just bitten by the fact that the type constructor Compose from
> Data.Functor.Compose associates to the left instead of to the right
> like function composition.
> I would like to propose adding the following to Data.Functor.Compose:
>   infixr 9 `Compose`   -- analogous to the fixity of (.)
> This will likely break existing code which uses Compose infix like in
> the following type:
>   a `Compose` b `Compose` c
> Discussion deadline: 13 September 2013.
> Bas

More information about the Libraries mailing list