idris2-extras
idris2-extras copied to clipboard
Some extra utilities for programming in Idris 2.
Idris2 Extras
Parts of this library are derived from the Idris 2 standard library, whose license may be found here.
Goal
The goal of this library is to become obsolete. Currently, Idris 2 is still in its infancy, so I frequently find things I wished the standard library had. This library fills some of those gaps.
Contents
Extras.Preludehas some basic things likezipfor streamsExtras.Control.MonadTranshasReaderT,ExceptT, andContT- The standard library now has
ReaderTandEitherT, so this part is now mostly obsolete
- The standard library now has
Extras.Data.DepMaphas a version ofData.SortedMapwhere the values can depend on the keys.Extras.Language.Derivehas utilities to deriveEqandDecEqinterfaces. They're not super robust, but they work for most simple types. Seetests/derive.idrandtests/derive_fail.idrfor what works and what doesn't.
TODO
- Maybe a dependent hashmap? Or even a non-dependent hashmap would be nice tbh