Skip to content

v0.50.0

Choose a tag to compare

@andywhite37 andywhite37 released this 10 Jan 04:45

✨ New

  • @utkarshkukreti - added removeAt to List and Array #226
  • Added fromList, fromArray, and reverse to NonEmpty, which consequently adds them to NonEmpty.List and NonEmpty.Array
  • Added errorNel and errorNea to Validation to lift a single error into a VError containing a Nel/Nea
  • Added Relude_Free_Applicative module
    • Free applicatives are useful for encoding things like descriptions of data (e.g. schemas), and interpreting these structures into different types of "operational" applicatives. For example, you can define a "schema" for data types using the FreeAp structure, then interpret these schemas into JSON encoders and parsers, help printers, etc. More examples possibly to follow in another relude library.
    • See test for basic usage (not terribly compelling, but just proving the concept)

🚨 Breaking

  • Renamed Relude_Interface.ARROW and ARROW_F to FUNCTION_1 and FUNCTION_1_F
  • Moved Bifunctor and Bifoldable modules outside the WithError functor for Result (they didn't need to be inside the WithError context)