sebnow/haskell-network-address — Issue #3: member function is wrong?
Author: pheaver
Created: 2012-01-13 19:04:25+00:00
State: open

The number after the / indicates how many bits (starting from the left) must match for an address to be considered a member of a subnet. So, this should be True, but it evaluates to False:

member (readAddress "192.168.1.1") (readSubnet "192.0.0.0/8" :: IPSubnet IPv4)

I am using HEAD (5b120d227d).