Copyright | (c) 2009, Tom Lokhorst |
---|---|
License | BSD3 |
Maintainer | Tom Lokhorst <tom@lokhorst.eu> |
Stability | Experimental |
Safe Haskell | Safe |
Language | Haskell98 |
A 'sort of' reusable module for mac addresses.
- data MacAddress = MacAddress Word8 Word8 Word8 Word8 Word8 Word8
- parse :: String -> MacAddress
- bytes :: MacAddress -> [Word8]
Documentation
parse :: String -> MacAddress Source #
Partial function to "parse" a String
to a MacAddress
bytes :: MacAddress -> [Word8] Source #
Get all bytes in a mac address