package domain-name
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=58026d7c80e8b0f402e7ec2a95b3704df44298deee4701d83d2b46e8ffa7b7a2
sha512=34456200efd60cdfe46a3bf04f630b45b796a5a60de517509909a41366512c34d744017a2dde5698a46e82a84a6068fe09ccd10ba945377847174dda001cbdcf
CHANGES.md.html
v0.2.0 (2019-06-25)
type t is now a phantom type 'a t, where 'a carries whether it is a hostname, a service name or a raw domain name. this lead to removal of various ?hostname:bool arguments
val host : 'a t -> ([
host] t, [>
Msg of string ]) resultanalog host_exn, service, service_exn, raw
removed is_service, is_hostname
new submodules Host_set, Host_map, Service_set, Service_map
new function: append : 'a t -> 'b t -> ([
raw] t, [>
Msg of string ]) resultrenamed: drop_labels{,_exn} is now drop_label{,_exn}
renamed: prepend{,_exn} is now prepend_label{,_exn}
0.1.2 (2019-02-16)
is_service
accepts numeric service names, used for ports in TLSA records (#1 by @cfcs)port to dune
0.1.1 (2018-07-07)
to_string
andto_strings
now have an optional labeledtrailing
argument of type boolsupport for FQDN with trailing dot:
of_string "example.com."
now returnsOk
, and is equal toof_string "example.com"
fix and add tests for
drop_labels
anddrop_labels_exn
, where the semantics of the labeledback
argument was inversed.
0.1.0 (2018-06-26)
Initial release