Well, warpstorm already pointed this out but I'll quote the manual from page 87:
"Generally, farms can be constructed in any tile that doesnt contain a resource. If the tile does contain a resource, only the appropriate improvement can be constructed."
So according to this, you can't just...