Hi Zubin: Here is a code fragment from my Erlang server codebase.
<<IPVer:4, HLen:4, SrvcType:8, TotLen:16, ID:16, Flgs:3, FragOff:13, TTL:8, Proto:8, HdrChkSum:16, SrcIP:32, DestIP:32, RestDgram/binary>> = Datagram i'm using the Erlang Bit syntax expression to pattern match and extract individual bits in the binary IP datagram. As you are Haskell expert, could you please share your knowledge of how to write this piece of code in Haskell ? Thank you in advance. thanks Saifi.

