Add debug route and refactor some code

This commit is contained in:
2022-09-07 22:39:11 +02:00
parent 3ca153ba87
commit 48dab03326
6 changed files with 107 additions and 62 deletions
+1
View File
@@ -120,6 +120,7 @@ removePrefixModifier prefix = lowercaseFirst . stripPrefix prefix
lowercaseFirst (c:cs) = Char.toLower c : cs
lowercaseFirst [] = error $ "Prefix " ++ prefix ++ " ate all my input"
removePrefixOpts :: String -> Options
removePrefixOpts prefix = defaultOptions { fieldLabelModifier = removePrefixModifier prefix }
data Document = Document