File: MACCatcher.hs

package info (click to toggle)
haskell-maccatcher 2.1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 100 kB
  • sloc: haskell: 177; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 246 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env runhaskell

import System.Info.MAC

main                         =  do
  macs                      <-  macs
  case macs of _:_          ->  mapM_ print macs
               [ ]          ->  putStrLn "Failed to obtain MAC address."