<div dir="ltr">Hello All,<br><br>I'm getting the following error:<br><br>/apps/workspace/hade/src/Step/ReadExcel.hs:39:23:<br>    Couldn't match expected type ‘L.ByteString’<br>                with actual type ‘IO L.ByteString’<br>    In the first argument of ‘IBuf’, namely ‘j’<br>    In the second argument of ‘sendChan’, namely ‘(IBuf j)’<br><br><br>when I compile the following code:<br><br>data Buf = IChan (SendPort Buf) | IBuf (L.ByteString) deriving (Show,Generic,Typeable)<br><br>instance Binary Buf<br><br>readExcel :: Process()<br>readExcel = do<br>  sendChan chan (IBuf j) <br> where <br>    IChan chan = expect<br>    j = do<br>      r <- toTableRowsFromFile 8 "final-project.xlsx"<br>      let b = A.encode r <br>      return b<br><br>remotable ['readExcel]<br><br>Any ideas as to what I'm doing wrong?<br><br>Carl<br><br></div>