A simplified version of nc, written in Haskell.