Slide 12
Slide 12 text
例: Kubernetes(Dhall色々定義2/2)
24 in let Port : Type = { protocol : Text, port : Integer, targetPort :
25
26 in let Spec : Type = { selector : Selector, ports : List Port }
27
28 in let Yaml
29 : Type
30 = { kind : Text, apiVersion : Text, metadata : Metadata, spec
31
32 in { Kinds =
33 constructors Kind_
34 , kind =
35 λ(k : Kind_) → merge kindHandlers k
36 , ApiVersions =
37 constructors ApiVersion
38 , apiVersion =
39 λ(v : ApiVersion) → merge apiVersionHandlers v
40 , Protocols =
41 constructors Protocol
42 , protocol =
43 λ(p : Protocol) → merge protocolHandlers p
44 , Yaml =
45 Yaml
46 }
12 / 18