I know i can do something like this to get an integer out of a datatype:
[x | (PhoneNo x) <- [PhoneNo 1234]]
where PhoneNo is defined as:
data PhoneNo = PhoneNo Integer deriving (Eq, Ord)
However this is better for lists. How can I extract the integer of a single PhoneNo instance?