agda2hs icon indicating copy to clipboard operation
agda2hs copied to clipboard

Definition of `Functor` is inconsistent with `base-4.18.1.0` etc.

Open bwbush opened this issue 9 months ago • 1 comments

The agda2hs prelude puts void as a member of the typeclass, but the latest GHC base libraries do not.

Compare void in

https://github.com/agda/agda2hs/blob/7b3e48a35448acff9bb5823ca22623eafb000d15/lib/Haskell/Prim/Functor.agda#L15-L24

and to it's top-level placement in

https://github.com/ghc/ghc/blob/f3225ed4b3f3c4309f9342c5e40643eeb0cc45da/libraries/base/Data/Functor.hs#L210-L211

The same problem occurs for several other members of Functor and for several other typeclasses.

bwbush avatar May 08 '24 17:05 bwbush

Currently we are not very explicit about which version of GHC or the Haskell Prelude we support. But in this case I believe it makes sense to remove void as a field so we are compatible with the latest release at least.

jespercockx avatar May 24 '24 12:05 jespercockx