Skip to content

tim-br/validate-brackets-hs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

validateBrackets - A Haskell MonadFail Exploration

This small Haskell project demonstrates how to validate a string of parentheses using monadic folding (foldM) in polymorphic monads (Maybe and Either). It showcases how to use custom MonadFail instances, pattern matching, and safe error handling in idiomatic Haskell.

🔧 Requirements

🚀 How to Run

stack run

You should see output like:

Running validateBrackets ...
Right "Success"
Just "Success"
Left "Unbalanced parens"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published