forked from msgpack/msgpack-haskell
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Milestone
Description
I was trying to update some old code which was still using the msgpack package, so I tried switching to this fork. I see the MessagePack class now has
fromObject :: (Applicative m, Monad m) => Object -> m ainstead of
fromObject :: Object -> Maybe aCan you explain the rationale for this change? I see no reason why fromObject needs to work polymorphically over all monads, it has nothing to do with monads at all! You end up using just the fail method for all your instances. At best, you could change Maybe a to Either Error a using an Error datatype.
Metadata
Metadata
Assignees
Labels
No labels