diff options
| author | Caroline Larimore <caroline@larimo.re> | 2025-02-04 19:15:59 -0800 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2025-04-14 18:58:44 -0700 |
| commit | 96ed4cc496be35903121ca4e3176206d3f28efc6 (patch) | |
| tree | 16608ab4faae6b7aa090004c05ceac070d37cd66 | |
| parent | 10f11ec042ab468821274636d438f84781cb2408 (diff) | |
migration: color conversion functions
| -rw-r--r-- | snowfall/lib/color-conversion/default.nix (renamed from util/color-conversion.nix) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/color-conversion.nix b/snowfall/lib/color-conversion/default.nix index 969eec1..437b511 100644 --- a/util/color-conversion.nix +++ b/snowfall/lib/color-conversion/default.nix @@ -1,4 +1,5 @@ { lib }: + let hexToDecMap = { "0" = 0; @@ -102,8 +103,7 @@ let hexToDecMap."${lowerHex}" else throw "Character ${hex} is not a hexadecimal value."; -in -rec { +in rec { /* Converts from hexadecimal to decimal. Type: hexToDec :: string -> int |