Skip to content

Binary instance for Generically.#192

Open
Icelandjack wants to merge 3 commits intohaskell:masterfrom
Icelandjack:generically
Open

Binary instance for Generically.#192
Icelandjack wants to merge 3 commits intohaskell:masterfrom
Icelandjack:generically

Conversation

@Icelandjack
Copy link

  • Adds a Binary (Generically a) instance.
  • Updates the documentation.

@bgamari
Copy link
Collaborator

bgamari commented Mar 6, 2023

I have rebased this and fixed a few minor wibbles.

Copy link
Contributor

@konsumlamm konsumlamm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you rebase on latest master?

-- and then deriving the appropriate @'Binary' T@ instance via
-- @Generically T@.
--
-- > {-# LANGUAGE DeriveAnyClass #-}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think DeriveAnyClass is needed here.

--
-- This mechanism makes use of GHC's efficient built-in generics
-- support.
-- Beginning with GHC 7.2 this generic definition has been a part of
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
-- Beginning with GHC 7.2 this generic definition has been a part of
-- Beginning with GHC 7.2, a generic definition has been a part of

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 this pull request may close these issues.

3 participants