From bf32e640d79d64f2449b9352ed1964ce97e79b3f Mon Sep 17 00:00:00 2001 From: iphydf Date: Sun, 18 Dec 2016 20:26:22 +0000 Subject: [PATCH] Import orphan instances as quick-fix for issue #7. Ideally we would not have orphan instances. PR #5 introduced them. See https://stackoverflow.com/questions/3079537/orphaned-instances-in-haskell for some reasons why we want to avoid them. --- src/Network/MessagePack/Rpc.hs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Network/MessagePack/Rpc.hs b/src/Network/MessagePack/Rpc.hs index 3a1df7e..390cbbe 100644 --- a/src/Network/MessagePack/Rpc.hs +++ b/src/Network/MessagePack/Rpc.hs @@ -19,6 +19,11 @@ import qualified Network.MessagePack.Interface.Internal as I import qualified Network.MessagePack.Types.Client as Client import qualified Network.MessagePack.Types.Server as Server +-- Import orphan instances for RpcType and IsReturnType. +-- TODO(SX91): Avoid orphan instances. See issue #7. +import Network.MessagePack.Client.Basic () +import Network.MessagePack.Server.Basic () + class RpcService rpc where type ClientMonad rpc :: * -> *