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 purescript/transformers and purescript/exceptions to enable authors to create custom assertion functions #281

Open
hobovsky opened this issue Jan 1, 2024 · 1 comment

Comments

@hobovsky
Copy link

hobovsky commented Jan 1, 2024

Motivated by this translation.

I wanted to create my own assertion, because basic Spec assertions do not allow for custom messages. I came up with:

-- shouldEqualMsg :: String -> String -> String -> MonadThrow Error Unit
shouldEqualMsg v1 v2 msg = when (v1 /= v2) $ fail msg

However, signatures of assertion functions use types which are not available in packages defined as dependencies accessible for code of kata:


👍 reaction might help to get this request prioritized.

@kazk
Copy link
Member

kazk commented Jan 3, 2024

The container image for PureScript is maintained in https://github.com/codewars/purescript

Can you open a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants