Restored Prelude.filter. Improved error message.
New function 'toListSegment'.