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 failure with mtl-2.3 #2

Open
sjakobi opened this issue May 20, 2022 · 2 comments
Open

Build failure with mtl-2.3 #2

sjakobi opened this issue May 20, 2022 · 2 comments

Comments

@sjakobi
Copy link

sjakobi commented May 20, 2022

Building library for pretty-types-0.4.0.0..
[1 of 1] Compiling Data.Type.Pretty ( src/Data/Type/Pretty.hs, dist/build/Data/Type/Pretty.o, dist/build/Data/Type/Pretty.dyn_o )

src/Data/Type/Pretty.hs:632:9: error:
    Variable not in scope:
      when
        :: Bool
           -> PTM ()
           -> RWST
                Indentation String PTRenderState Data.Functor.Identity.Identity a1
    |
632 |         when leftHasContent (ptShow (Proxy :: Proxy l))
    |         ^^^^

src/Data/Type/Pretty.hs:633:9: error:
    Variable not in scope:
      when
        :: Bool
           -> PTM ()
           -> RWST
                Indentation String PTRenderState Data.Functor.Identity.Identity a0
    |
633 |         when (leftHasContent && rightHasContent) (ptShow (Proxy :: Proxy sep))
    |         ^^^^

src/Data/Type/Pretty.hs:634:9: error:
    Variable not in scope:
      when
        :: Bool
           -> PTM ()
           -> RWST
                Indentation String PTRenderState Data.Functor.Identity.Identity ()
    |
634 |         when rightHasContent (ptShow (Proxy :: Proxy r))
    |         ^^^^

src/Data/Type/Pretty.hs:645:9: error:
    Variable not in scope:
      when
        :: Bool
           -> RWST
                Indentation String PTRenderState Data.Functor.Identity.Identity ()
           -> RWST
                Indentation String PTRenderState Data.Functor.Identity.Identity ()
    |
645 |         when hasContent $ do
    |         ^^^^

src/Data/Type/Pretty.hs:658:9: error:
    Variable not in scope:
      when
        :: Bool
           -> RWST
                Indentation String PTRenderState Data.Functor.Identity.Identity ()
           -> RWST
                Indentation String PTRenderState Data.Functor.Identity.Identity ()
    |
658 |         when hasContent $ do
    |         ^^^^
@sheyll
Copy link
Owner

sheyll commented Aug 11, 2022

Hi thanks for the issue, I will look into it.

@sjakobi
Copy link
Author

sjakobi commented Aug 11, 2022

Note that mtl-2.3 ended up being deprecated due to haskell/mtl#117. I hope that there will be a follow-up release in a few weeks.

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