binary icon indicating copy to clipboard operation
binary copied to clipboard

Generically instance

Open Icelandjack opened this issue 3 years ago • 1 comments

Reminder to add an instance for Generically (base 4.17) by copying the default definitions

instance (Generic a, GBinaryPut (Rep a), GBinaryGet (Rep a)) => Binary (Generically a) where
  put :: Generically a -> Put
  put (Generically a) = gput (from a)

  get :: Get (Generically a)
  get = Generically . to <$> gget

Icelandjack avatar Mar 23 '22 20:03 Icelandjack

Made a pullrequest #192.

Icelandjack avatar Mar 23 '22 21:03 Icelandjack