worked on foldable for NonEmpty
woring out NonEmpty issues in haskell.