haskell-distributed / distributed-process

Cloud Haskell core libraries
http://haskell-distributed.github.io
711 stars 96 forks source link

No instance for (binary-0.8.5.1:Data.Binary.Class.Binary Main.Message) #375

Closed tempuku closed 11 months ago

tempuku commented 11 months ago

Hi team! I got this error. Could you please help to resolve it?

No instance for (binary-0.8.5.1:Data.Binary.Class.Binary
                         Main.Message)
        arising from a use of ‘match’
      There are instances for similar types:
        instance binary-0.8.5.1:Data.Binary.Class.Binary
                   Control.Distributed.Process.Message
          -- Defined in ‘Control.Distributed.Process.Internal.Types
    • In the expression: match commandCatch
      In the first argument of ‘receiveWait’, namely
        [match commandCatch]
      In a stmt of a 'do' block:
        (s, i) <- receiveWait [match commandCatch]
   |
53 |   (s, i) <- receiveWait[match commandCatch]

GHC 8.4.4

build-depends:    base ^>=4.11.1.0,
                      distributed-process == 0.7.4,
                      network-transport-tcp == 0.8.1,
                      network-transport == 0.5.6,
                      bytestring == 0.10.8.2,
                      binary == 0.8.5.1,
                      bytestring >= 0.9 && < 0.12,
tempuku commented 11 months ago

I realized that issue was relied on my message data deriving: I need Binary and Generic