Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit b76576f

Browse files
committed
Parse field definitions without =<expr> as implicit =null()
1 parent 88cb2e4 commit b76576f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Cli.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ parseExpr :: String -> Either String Field
4343
parseExpr s =
4444
case parts of
4545
[field, expr] -> bimap show (field ,) (E.parseExpr expr)
46+
[field] -> bimap show (field ,) (E.parseExpr "null()")
4647
_ -> Left "Field must be in <name>=<expr> format"
4748
where
4849
parts = T.splitOn "=" (T.pack s)

0 commit comments

Comments
 (0)