ip-0.8.7: Library for IP and MAC addresses

Safe HaskellNone
LanguageHaskell2010

Net.Mac.ByteString.Char8

Synopsis

Documentation

encode :: Mac -> ByteString Source #

This is a mediocre implementation that should be rewritten.

decode :: ByteString -> Maybe Mac Source #

This is a mediocre implementation that should be rewritten.

builder :: Mac -> Builder Source #

Make a bytestring builder from a Mac address using a colon as the separator.

parser :: Parser Mac Source #

Parser for a Mac address using with a colon as the separator (i.e. FA:43:B2:C0:0F:99).

parserWith :: MacDecoding -> Parser Mac Source #

Parser for a Mac address using to the provided settings.