ekmett / bytes

Serialization primitives that work with both cereal and binary.
http://hackage.haskell.org/package/bytes
Other
22 stars 13 forks source link

Fix default signature of remaining to align with method type #35

Closed bgamari closed 7 years ago

bgamari commented 7 years ago

This allows bytes to compile with GHC 8.2.

bgamari commented 7 years ago

Pinging @RyanGlScott. Also see GHC #13249.

RyanGlScott commented 7 years ago

FWIW, this:

default remaining :: (MonadTrans t, Monad n, MonadGet n, m ~ t n, Remaining m ~ Remaining n) => m (Remaining m)

Can be made even shorter:

```haskell
default remaining :: (MonadTrans t, MonadGet n, m ~ t n, Remaining m ~ Remaining n) => m (Remaining m)

That Monad n constraint is redundant, as it is implied by MonadGet n.