Code Monkey home page Code Monkey logo

Comments (9)

aspiwack avatar aspiwack commented on July 29, 2024

Thanks @Bodigrim .

I hadn't tried, but let's just say that I'm not surprised. I was sort of expecting this to happen even. I'm not 100% sure how best to make a version which is compatible with both GHC 9.2 and GHC 9.4 yet. (I've been having issues with just being compatible with GHC 9.2, see #414 )

My favoured plan is to make two files which export Generically, one that defines it, and one that re-exports base's one. Build with the former in GHC 9.2 and with the latter in GHC 9.4.

from linear-base.

aspiwack avatar aspiwack commented on July 29, 2024

All that being said, I'm a bit swamped right now, so I'll be slow to implement any solution.

from linear-base.

jeicher avatar jeicher commented on July 29, 2024

There's an additional issue here when building with 9.4:

     The ‘~’ operator is out of scope.
      Assuming it to stand for an equality constraint.
     NB: ‘~’ used to be built-in syntax but now is a regular type operator
          exported from Data.Type.Equality and Prelude.
      If you are using a custom Prelude, consider re-exporting it.
     This will become an error in a future GHC release.
    |
157 |     n ~ Arity b f
    |       ^

The recommendation from here appears to fix it:

module Prelude.Linear.Internal
  ( module Prelude.Linear.Internal
  , module Data.Type.Equality
  ) where

from linear-base.

aspiwack avatar aspiwack commented on July 29, 2024

I think this proposal would be the reason.

from linear-base.

jeicher avatar jeicher commented on July 29, 2024

Yeah, thanks. Just updated the previous comment :)

from linear-base.

L-as avatar L-as commented on July 29, 2024

https://hackage.haskell.org/package/generically ?

from linear-base.

treeowl avatar treeowl commented on July 29, 2024

Don't we always want our own version?

from linear-base.

aspiwack avatar aspiwack commented on July 29, 2024

I didn't know about the generically package, thanks for point it out @L-as. It would have worked, but we ended up deploying our own version. in #427 . This issue should have been closed (I'll close it now), but we mistakenly didn't.

I'll release very soon, I just need a couple of hours of focus time to push a few PRs and make the release.

from linear-base.

danwdart avatar danwdart commented on July 29, 2024

I am still getting issues with the dep tasty-hedgehog being marked as broken when testing this on ghc 9.4 using nix (probably out of scope), maybe a hackage release with different bounds can help though?

from linear-base.

Related Issues (20)

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.