haskell-infra / hackage-trustees

Issue tracker for Hackage maintainance and trustee operations
https://hackage.haskell.org/packages/trustees/
42 stars 7 forks source link

Tighten hastache bounds for latest base #257

Closed vmchale closed 4 years ago

vmchale commented 4 years ago

Building hastache with GHC 8.10.1 results in:

[1 of 2] Compiling Text.Hastache    ( Text/Hastache.hs, dist/build/Text/Hastache.o, dist/build/Text/Hastache.dyn_o )

Text/Hastache.hs:355:18: error:
    • Ambiguous type variable ‘t0’ arising from a use of ‘Prelude.elem’
      prevents the constraint ‘(Foldable t0)’ from being solved.
      Probable fix: use a type annotation to specify what ‘t0’ should be.
      These potential instances exist:
        instance Foldable (Either a) -- Defined in ‘Data.Foldable’
        instance [safe] Foldable f => Foldable (MaybeT f)
          -- Defined in ‘Control.Monad.Trans.Maybe’
        instance Foldable Maybe -- Defined in ‘Data.Foldable’
        ...plus two others
        ...plus 30 instances involving out-of-scope types
        (use -fprint-potential-instances to see them all)
    • In the expression: (`Prelude.elem` " \t")
      In an equation for ‘trimCharsTest’:
          trimCharsTest = (`Prelude.elem` " \t")
    |

Thanks!

phadej commented 4 years ago

Which hastache version it is? The latest one has base (>=4.4 && <4.11),

I assume that solver is picking a hastache-0.5 version. I suspect something is missing the lower bound.

I'll make revisions for these older hastache versions later.

phadej commented 4 years ago

Revisions done.