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

MonadFail compatibility #21

Open
nomeata opened this issue Oct 15, 2018 · 2 comments · May be fixed by #22
Open

MonadFail compatibility #21

nomeata opened this issue Oct 15, 2018 · 2 comments · May be fixed by #22

Comments

@nomeata
Copy link

nomeata commented Oct 15, 2018

Trying to build the current package with GHC-8.6, I get:

[13 of 31] Compiling Graphics.PDF.Draw ( Graphics/PDF/Draw.hs, dist/build/Graphics/PDF/Draw.o )

Graphics/PDF/Draw.hs:256:5: error:
    • No instance for (Control.Monad.Fail.MonadFail Draw)
        arising from a do statement
        with the failable pattern ‘(x : xs)’
    • In a stmt of a 'do' block: (x : xs) <- gets supplyNames
      In the expression:
        do (x : xs) <- gets supplyNames
           modifyStrict $ \ s -> s {supplyNames = xs}
           return x
      In an equation for ‘supplyName’:
          supplyName
            = do (x : xs) <- gets supplyNames
                 modifyStrict $ \ s -> ...
                 return x
    |
256 |     (x:xs) <- gets supplyNames
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Failed to build HPDF-1.4.10 (which is required by exe:tttool from
tttool-1.8).

It would be great to have HPDF with current versions of GHC, as tttool heavily relies on it.

nomeata added a commit to entropia/tip-toi-reveng that referenced this issue Oct 15, 2018
@nomeata
Copy link
Author

nomeata commented Nov 29, 2018

What is the maintenance status of HPDF, if I may ask?

@mtolly mtolly linked a pull request Nov 30, 2018 that will close this issue
@benjaminweb
Copy link

http://www.alpheccar.org/content/84.html, posted Nov 4, 2011 reads:

It is no more maintained because I don't have time. If some day I can find time to work on it again, I'll write a totally different API.

@alpheccar Since 7 years passed: What's the current state?

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

Successfully merging a pull request may close this issue.

2 participants