Dan Haren and the A's agreed to a four-year contract that will keep the right-hander locked up through his salary arbitration years. Haren, acquired in the offseason from St. Louis in a trade for left-hander Mark Mulder, will be under contract through the 2009 season with a club option for 2010. Haren is 13-12 with a 3.81 ERA in 33 starts with the A's this year, ranking eighth in the American League with 210 innings coming into Monday night. After starting the season 1-7, Haren has gone 12-5 with a 3.40 ERA in his last 23 starts, including a nine-game winning streak earlier in the year. The A's won 14 straight starts he made from May 31 to Aug. 7, tying Chuck Dobson's club record set in 1971. Haren, who pitched parts of two seasons with St. Louis, has a career record of 19-22 with a 4.19 ERA. General manager Billy Beane likes to lock up his young pitchers early in their careers with long-term deals to avoid salary arbitration, also doing it with Mulder, Barry Zito, Rich Harden and Tim Hudson.