f# as of the 2008 CTP release is under a slightly modified Microsoft Research Shared Source license agreement ("MSR-SSLA").
Essentially you can modify it but MS gets royalty free permission all your modifications
There was talk within the team of it moving to the more open MS-PL licence, I don't know how that has gone, nor what the implications are given the plan to include f# in VS2010.