Created
October 4, 2013 15:20
-
-
Save t0yv0/6827704 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Person = | |
{ | |
Address : string | |
Age : int | |
Name : string | |
} | |
let makePerson name age address = | |
{ | |
Address = address | |
Age = age | |
Name = name | |
} | |
let personPickler = | |
Pickler.product makePerson | |
^+ Pickler.field (fun p -> p.Name) Pickler.string | |
^+ Pickler.field (fun p -> p.Age) Pickler.int | |
^. Pickler.field (fun p -> p.Address) Pickler.string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mbraceproject/FsPickler#4