Created
February 26, 2020 03:34
-
-
Save lovesegfault/5adda54020dd7e628febfd5b0ff78122 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zedConf = generators.toKeyValue { | |
mkKeyValue = generators.mkKeyValueDefault { | |
mkValueString = v: | |
if isInt v then toString v | |
else if isString v then "\"${v}\"" | |
else if true == v then "1" | |
else if false == v then "0" | |
else if isList v then "\"" + (concatStringsSep " " v) + "\"" | |
else err "this value is" (toString v); | |
} "="; | |
} cfgZED.settings; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment