Non-exhaustive pattern in Socket.hsc