start playing with resume data types

Signed-off-by: Xe <me@christine.website>
This commit is contained in:
Cadey Ratio 2022-06-20 19:10:49 +00:00
parent 15a130cc3d
commit a1974a5948
4 changed files with 62 additions and 0 deletions

38
dhall/resume.dhall Normal file
View File

@ -0,0 +1,38 @@
let xesite = ./types/package.dhall
let Resume = xesite.Resume
let Link = xesite.Link
in Resume::{
, hnLinks =
[ Link::{
, url = "https://news.ycombinator.com/item?id=29522941"
, title = "'Open Source' is Broken"
}
, Link::{
, url = "https://news.ycombinator.com/item?id=29167560"
, title = "The Surreal Horror of PAM"
}
, Link::{
, url = "https://news.ycombinator.com/item?id=27175960"
, title = "Systemd: The Good Parts"
}
, Link::{
, url = "https://news.ycombinator.com/item?id=26845355"
, title = "I Implemented /dev/printerfact in Rust"
}
, Link::{
, url = "https://news.ycombinator.com/item?id=25978511"
, title = "A Model for Identity in Software"
}
, Link::{
, url = "https://news.ycombinator.com/item?id=31390506"
, title = "Fly.io: The reclaimer of Heroku's magic"
}
, Link::{
, url = "https://news.ycombinator.com/item?id=31149801"
, title = "Crimes with Go Generics"
}
]
}

1
dhall/types/Link.dhall Normal file
View File

@ -0,0 +1 @@
{ Type = { url : Text, title : Text }, default = { url = "", title = "" } }

21
dhall/types/Resume.dhall Normal file
View File

@ -0,0 +1,21 @@
let Location = ./Location.dhall
let Link = ./Link.dhall
in { Type =
{ name : Text
, tagline : Text
, location : Location.Type
, hnLinks : List Link.Type
}
, default =
{ name = "Xe Iaso"
, tagline = "Archmage of Infrastructure"
, location = Location::{
, city = "Ottawa"
, stateOrProvince = "ON"
, country = "CAN"
}
, hnLinks = [] : List Link.Type
}
}

View File

@ -2,8 +2,10 @@
, Company = ./Company.dhall , Company = ./Company.dhall
, Config = ./Config.dhall , Config = ./Config.dhall
, Job = ./Job.dhall , Job = ./Job.dhall
, Link = ./Link.dhall
, Location = ./Location.dhall , Location = ./Location.dhall
, Person = ./Person.dhall , Person = ./Person.dhall
, Resume = ./Resume.dhall
, Salary = ./Salary.dhall , Salary = ./Salary.dhall
, Stock = ./Stock.dhall , Stock = ./Stock.dhall
, StockKind = ./StockKind.dhall , StockKind = ./StockKind.dhall