Jugendhackt / haskell-ricochet

(WIP/Experimental) Ricochet implementation as Haskell Library.
GNU General Public License v3.0
22 stars 0 forks source link

Ensure that packet size is set correctly #25

Closed sternenseemann closed 9 years ago

sternenseemann commented 9 years ago

Should we introduce a check and a return type of Maybe ByteString in dumpPacket or do we just asume that we generate correct packets everywhere?

sternenseemann commented 9 years ago

Added the function makePacket which is always setting the correct packet size.

photm5 commented 9 years ago

This wouldn’t happen with idris ;)... However, we could choose to only expose makePacket.