Skip to content

opendevtools/rescript-personnummer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rescript-personnummer

A personnummer is a social security number in Sweden. This is early development of parsing such numbers in ReScript.

Parse

type t = {
  year: string,
  month: string,
  day: string,
  gender: Gender.t,
  placeOfBirth: PlaceOfBirth.t,
}

type t = Valid(t) | Invalid

Personnummer.Parse.make("1212121212")

// Valid({
//  year: "12",
//  month: "12",
//  day: "12",
//  gender: Male,
//  placeOfBirth: Stockholm,
//})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published