Well, it wasn't my code. It turns out that when I use the exact ProvidedTypes-head.fs
contained in the linked example, then everything works like it should. However, when I use a different version, like the ProvidedTypes.fs
from FSharp.Data
, then it has the incorrect behavior. I'm not sure what the difference is between them that is causing the issue. I'm also not sure where to find the "official" version of the the file, if one indeed exists.
UPDATE: Looks like the official version is here.