Skip to content

Comments

Avoid error inside a pure value, and use instead the IO Monad's fail#116

Closed
berdario wants to merge 1 commit intohaskell-tls:masterfrom
berdario:error
Closed

Avoid error inside a pure value, and use instead the IO Monad's fail#116
berdario wants to merge 1 commit intohaskell-tls:masterfrom
berdario:error

Conversation

@berdario
Copy link
Contributor

Otherwise, to catch this runtime error, you'd be forced to use something like Control.Exception.evaluate

@hasufell
Copy link

hasufell commented Jul 31, 2021

This is not the only place: https://github.com/vincenthz/hs-certificate/blob/7041244d0dd3946d96af66611b2760d2478e055f/x509-system/System/X509/MacOS.hs#L23

I'm seriously concerned to see such novice issues in a security critical library.

@vincenthz
Copy link
Collaborator

Thanks @berdario, however I went with the other PR #125 prefering the use of throwIO instead of fail.

@hasufell and I'm seriously concerned how many dicks such as yourself, are littering the haskell community, ready for judgmental comments and insults like the one above. maybe you should ask for your money back. oh wait.

@vincenthz vincenthz closed this Sep 11, 2021
@haskell-tls haskell-tls locked as resolved and limited conversation to collaborators Sep 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants