Skip to content

Instantly share code, notes, and snippets.

@rightfold
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rightfold/1ec84341eb3e1f18dc21 to your computer and use it in GitHub Desktop.
Save rightfold/1ec84341eb3e1f18dc21 to your computer and use it in GitHub Desktop.
module
Main
import
System.Time (ISOCalendar, LocalDate, makeLocalDate)
feature
struct UserID feature
value: N
end
struct User feature
id: UserID
name: String
emailAddress: String
birthday: LocalDate
end
sub main (env: Environment): Unit do
let birthday = makeLocalDate ISOCalendar 1994 12 23
p <| makeUser (makeUserID 1) "rightfold" "rightfold@gmail.com" birthday
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment