anchor.diff:    end.
   
   wrap(Fun,line) -> Fun;
  -wrap(Fun,sax)  -> sax_f(Fun);
   wrap(Fun,xml)  -> Fun;
   wrap(Fun,term) -> term_f(Fun);
   wrap(Fun,trc)  -> Fun.
  
positive.code: -module('bread').
  -author('Mats Cronqvist').
  
  -export([sax/3
           , xml/3
           , term/3
           , line/3
           , trc/3
  
negative.code:  fold(Filename,Fun,Acc,[trc]).
  
  fold(Filename,Fun,Acc,Opts) ->
    Type = take_first(Opts,[line,xml,term,trc]),
    case file:open(Filename, [read, raw, binary, compressed]) of
      {ok, FD} ->
        try fold(read(FD),FD,wrap(Fun,Type),chunker(Type),?state(Acc,?tail_0()))
  