Skip to content

Instantly share code, notes, and snippets.

@michaelt
Created October 7, 2012 03:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelt/3847032 to your computer and use it in GitHub Desktop.
Save michaelt/3847032 to your computer and use it in GitHub Desktop.
parsepacket
countPackets p =
let v = AL.parse (CA.many packetValue) p
r = fromMaybe [] $ AL.maybeResult v
in r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment