anchor.diff:  -export([init/1, handle_call/3, handle_cast/2, handle_info/2, code_change/3, terminate/2]).
   
   -include("erl_reader.hrl").
  +-include("deps/atomizer/src/atomizer.hrl").
   
   -record(state, {feed}).
   
  
positive.code:     Uri = Feed#er_feed.feed,
      io:format("Checking for updates: ~p~n", [Uri]),
      try atomizer:parse_url(Uri) of
          _Feed ->
              {stop, normal, State}
      catch
          _:Reason ->
  
negative.code: 
  code_change(_OldVsn, State, _Extra) ->
      {ok, State}.
  
  check_for_updates(Feed, UpdatedFeed) when UpdatedFeed#feed.updated =/= undefined, Feed#er_feed.lastUpdated >= UpdatedFeed#feed.updated ->
      % no-op if last update for feed is as old or older than the version we have already
      ok;
  
  check_for_updates(Feed, UpdatedFeed) ->
      NewEntries = lists:filter(fun(Entry) ->
                                    MatchingEntries = lists:filter(fun(E) -> E#er_entry.link =:= Entry#feedentry.permalink end, Feed#er_feed.entries),
                                    length(MatchingEntries) =:= 0
                                end, UpdatedFeed#feed.entries),
      io:format("New entries: ~p~n", [NewEntries]),
      ok.
  