incorrect dependencies on template-haskell

Antoine Latter aslatter at gmail.com
Mon Oct 3 04:21:30 CEST 2011


On Sun, Oct 2, 2011 at 8:31 PM, Brandon Moore <brandon_m_moore at yahoo.com> wrote:
> template-haskell-2.6.0.0 has inaccurate dependencies thatlead cabal-install to attempt to install it on 6.12.3
>
> The .cabal specifies
>
>     build-depends: base >= 4.2 && < 5,
>
>
> but assumes TypeSynonymInstances in PprLib.hs
>
> (only true by default after Haskell2010 became default in ghc-7.0.1),
>
> instance Show Doc
>
>
> and PPr.lhs
>
>
> import GHC.Show( showMultiLineString )
> (added in commit e8d11b1, labeled 4.3.0.0)
>
> It seems the dependency should be at least base >= 4.3,
> and either the LANGUAGE pragma or cabal file updated.
>
>
> If the package isn't meant to be upgraded, should it be on
> hackage at all?
>

Using an install of the template-haskell library other than the one
GHC was built against will make GHC unhappy - the operations in the
library won't type-check against the built-in GHC magic.

> Brandon
>
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>



More information about the Libraries mailing list