cuedo / github-webhooks

Haskell types and instances for decoding GitHub webhook payloads.
https://hackage.haskell.org/package/github-webhooks
MIT License
34 stars 15 forks source link

Intermittent hlint error #33

Closed kvanbere closed 4 years ago

kvanbere commented 4 years ago

Operating system or device, package version, compiler version:

Issue description: Somehow, hlint is causing an intermittent failure with the following message (perhaps hlint was updated recently).

Downloading and running hlint...
######################################################################## 100.0%
examples/scotty/src/Main.hs:26:13-109: Warning: Use print

Found:
  liftIO . putStrLn
    $ (show . whIssueCommentBody . evIssueCommentPayload)
        (ev :: IssueCommentEvent)

Perhaps:

  liftIO
    (print
       (whIssueCommentBody . evIssueCommentPayload
          (ev :: IssueCommentEvent)))

Steps to reproduce: See this on Travis here: https://travis-ci.org/github/onrock-eng/github-webhooks/jobs/683262402

We should just fix the lint error.