[Haskell-cafe] wlan library

2008-12-12 Thread Cetin Sert
Hi *^o^*,

I am writing a network manager http://sert.homedns.org/hnm/ as a
replacement for some broken, already existing knetworkmanager for a friend's
computer.

I was looking for some haskell libraries that provide access to wlan cards
but could not find any on hackage. Maybe I missed something. Currently my
tool is using linux the commands: modprobe, ifconfig, iwconfig, iwlist,
dhclient etc.. Can a library calling external stand-alone linux commands be
considered good enough as is? Or should one definitely write a wrapper
around a more low-level, stable, POSIX-compliant foreign library to access
and configure, control WLAN cards? I'd love to hear your comments.

Best Regards,
Cetin Sert
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] wlan library

2008-12-12 Thread Don Stewart
cetin.sert:
Hi *^o^*,
 
I am writing [1]a network manager as a replacement for some broken,
already existing knetworkmanager for a friend's computer.
 
I was looking for some haskell libraries that provide access to wlan cards
but could not find any on hackage. Maybe I missed something. Currently my
tool is using linux the commands: modprobe, ifconfig, iwconfig, iwlist,
dhclient etc.. Can a library calling external stand-alone linux commands
be considered good enough as is? Or should one definitely write a wrapper
around a more low-level, stable, POSIX-compliant foreign library to access
and configure, control WLAN cards? I'd love to hear your comments.

Hmm. For the long run, using the C FFI is probably more robust (a few
less points of failure). A binding to the shell commands will be cheaper
and more cheerful.

Go for it!

-- Don
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe