I believe you need to run "fslex text2htmllex.fsl" which will generate a file called text2htmllex.fs containing a function called convertHtml. You then should be able to compile the code you mentioned successfully (you will need to include the generated file on the fsc command line of course).

Note I haven't actually run this example (although I have used fslex).

-jordan

By on 2/18/2008 7:46 PM ()

Thanks Jordan,

I think I finally figured it out. I was running fslex and generating the *.fs file, but the code sample I was using did not show the other *.fs file opening the module to use it. That's why it didn't know what Text2htmllex was.

I'm pretty new to F# and have only been using it as a scripting langauge so far. Haven't gotten to any of this crazy module stuff. [:)]

By on 2/19/2008 2:06 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper