summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author·𐑑𐑴𐑕𐑑𐑩𐑀2025-12-13 15:05:14 +0000
committer·𐑑𐑴𐑕𐑑𐑩𐑀2025-12-13 15:05:14 +0000
commit6ee07ed9d166c4a58cd76cd101d49954dfe4be14 (patch)
treec4ffc9b10614bf0669700e1ba00f7789d8791374
parent879e9f98d08945abbf4a829e276bbdce0cafed6a (diff)
downloadnixtaml-6ee07ed9d166c4a58cd76cd101d49954dfe4be14.tar
nixtaml-6ee07ed9d166c4a58cd76cd101d49954dfe4be14.tar.gz
nixtaml-6ee07ed9d166c4a58cd76cd101d49954dfe4be14.tar.bz2
nixtaml-6ee07ed9d166c4a58cd76cd101d49954dfe4be14.tar.lz
nixtaml-6ee07ed9d166c4a58cd76cd101d49954dfe4be14.tar.xz
nixtaml-6ee07ed9d166c4a58cd76cd101d49954dfe4be14.tar.zst
nixtaml-6ee07ed9d166c4a58cd76cd101d49954dfe4be14.zip
add show to name
-rw-r--r--lib/name.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/name.ml b/lib/name.ml
index abf6e96..b78cf5f 100644
--- a/lib/name.ml
+++ b/lib/name.ml
@@ -15,6 +15,8 @@ module Name = struct
(* it’s okay to have fun *)
Fmt.pf fmt "γ€Œ%s」" (take name)
+ let show = Fmt.str "%a" pp
+
(* String.compare but with nixpkgs at the top *)
let compare (Name a) (Name b) =
let prio x =