Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add choice between 'pretty' or 'json' summary #963

Merged
merged 3 commits into from
Dec 14, 2020

Conversation

nano-o
Copy link
Contributor

@nano-o nano-o commented Dec 9, 2020

Adds the option to produce a verification summary in JSON format, as needed by @jared-w

@nano-o
Copy link
Contributor Author

nano-o commented Dec 9, 2020

This is failing because the CI uses ghc-8.6.5 and the bytestring package is pinned to 0.10.8.2 in cabal.GHC-8.6.5.config and jsonifier needs >= 0.10.10
@jared-w could you help me with this?

@nano-o nano-o force-pushed the json_summary_2 branch 2 times, most recently from c95da4a to db9aae8 Compare December 11, 2020 22:12
Couldn't get the build working with Jsonifier and ghc-8.6.5 (pulled in
too recent a version of bytestring)
@@ -74,66 +83,77 @@ printOutWith setting level msg
printOutLn :: Options -> Verbosity -> String -> IO ()
printOutLn o v s = printOutFn o v (s ++ "\n")

options :: [OptDescr (Options -> Options)]
options :: [OptDescr (Options -> IO Options)] -- added IO to do validation here instead of later
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At some point we might want to switch to a "real" option parsing library so that we can handle things like defaults, option groups, better validation, and useful error messages in a more principled way.

This seems fine to me for now, though.

@hazelweakly hazelweakly merged commit d6ee4a3 into GaloisInc:master Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants