mausch / XmlLiteralsTypeProvider

F# type provider implementing compile-time XML literals
Apache License 2.0
5 stars 2 forks source link

Xml type correctly distinguishes file or sample #15

Open panesofglass opened 10 years ago

panesofglass commented 10 years ago

Something in the FileStream must have caused the issue. Reading the file as text appears to fix whatever was wrong.

mausch commented 10 years ago

With these changes, the original string-based generator type TextHolesTemplate = XmlLiterals.Xml<textHoles> now fails at compile-time with "The type provider 'XmlLiteralsImpl.XmlLiteralsProvider' reported an error: Illegal characters in path".

Also, I disagree with using the same parameter to represent multiple things (string / filename / URI)