Giter Club home page Giter Club logo

Comments (2)

phadej avatar phadej commented on June 15, 2024

For the record, that line causes problem with GHC-9.0 as well, but different one:

src/Game/Chess/Internal/ECO.hs:82:20: error:
    • Couldn't match type ‘Language.Haskell.TH.Syntax.Code m0’ with ‘Q’
      Expected: Q (TExp ECO)
        Actual: Language.Haskell.TH.Syntax.Code m0 ECO
    • In the expression:
        (fmap . fmap) liftTyped (load fp)
          >>=
            \case
              Right xs -> [|| fromList $$(xs) ||]
              Left err -> fail err
      In an equation for ‘embedECO’:
          embedECO load fp
            = (fmap . fmap) liftTyped (load fp)
                >>=
                  \case
                    Right xs -> [|| fromList $$(xs) ||]
                    Left err -> fail err
   |
82 | embedECO load fp = (fmap.fmap) liftTyped (load fp) >>= \case
   |  

https://hackage.haskell.org/package/th-compat is a package which could help the compat story, especially after haskell-compat/th-compat#10 is implemented.

An alternative is to add bounds to base restricting chessIO to use only single GHC (matching the stack.yaml you use. IMHO stack is just a bad tool for developing libraries which support multiple GHC versions).

from chessio.

phadej avatar phadej commented on June 15, 2024

@mlang note, you need an upper bound too, as GHC-9.0 doesn't work either (there will be install plan as soon as o-clock has a compatible version - and the current is if ghc-prim version bound is relaxed)

from chessio.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.