Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failures with mtl-2.3 #14

Closed
sjakobi opened this issue May 19, 2022 · 1 comment
Closed

Build failures with mtl-2.3 #14

sjakobi opened this issue May 19, 2022 · 1 comment

Comments

@sjakobi
Copy link

sjakobi commented May 19, 2022

Geom2D/CubicBezier/Overlap.lhs:279:5: error:
    • Variable not in scope:
        replicateM_
          :: Int
             -> SweepStateM ()
             -> StateT SweepState Data.Functor.Identity.Identity a0
    • Perhaps you meant ‘replicate’ (imported from Prelude)
    |
279 | >   replicateM_ nR (yStructDel i)
    |     ^^^^^^^^^^^

Geom2D/CubicBezier/Overlap.lhs:341:40: error:
    • Variable not in scope:
        liftM2
          :: (Ratio Integer -> Ratio Integer -> Ratio Integer)
             -> Maybe (Ratio Integer)
             -> Maybe (Ratio Integer)
             -> Maybe (Ratio Integer)
    • Perhaps you meant one of these:
        ‘lift’ (imported from Control.Monad.State.Strict),
        ‘liftIO’ (imported from Control.Monad.State.Strict)
    |
341 | >         | otherwise = set curveRank (liftM2 between
    |                                        ^^^^^^

Geom2D/CubicBezier/Overlap.lhs:547:5: error:
    Variable not in scope:
      unless
        :: Bool
           -> StateT SweepState Data.Functor.Identity.Identity ()
           -> StateT SweepState Data.Functor.Identity.Identity ()
    |
547 | >   unless (M.null xStr) $ do
    |     ^^^^^^

Geom2D/CubicBezier/Overlap.lhs:843:5: error:
    Variable not in scope:
      when
        :: Bool
           -> StateT SweepState Data.Functor.Identity.Identity ()
           -> StateT SweepState Data.Functor.Identity.Identity ()
    |
843 | >   when (i >= 0 && i < s-1) $
    |     ^^^^

The affected versions on Hackage are v0.4.0.1, v0.4.0.2, v0.5.0.0, v0.6.0.5 and v0.6.0.6.

As a Hackage trustee I have created Hackage revisions for the affected versions that should prevent users from encountering these errors. See e.g. https://hackage.haskell.org/package/cubicbezier-0.6.0.6/revisions/.

@ysangkok
Copy link

This was fixed in 0.6.0.7 and the the issue can be closed

@sjakobi sjakobi closed this as completed Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants