I think you want the literal atttribute:

#light

1
2
3
4
5
6
7
8
9
10
11
12
 

[<Literal>]
let C = "test"

let test = function
           | "something"   -> "lit1"
           | C             -> "lit2"
           | _ -> "nope"
        
printfn "%s" <| test "hi"
printfn "%s" <| test "test"  

However it seems the literal must start with a capital letter.

By on 4/20/2009 2:36 PM ()

OK I found it. It was:

1
2
[<Literal>]
let ProviderKey_Sql = ""
By on 4/20/2009 2:31 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