Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.09 KB

README.md

File metadata and controls

28 lines (20 loc) · 1.09 KB

Elab Deriving (bad name, pick better)

Very WIP!

Please check out https://github.com/stefan-hoeck/idris2-elab-util an elab deriving project made by someone much smarter than me.

Resources: https://github.com/mb64/idris2-extras/blob/main/Extra/Language/Derive.idr https://github.com/david-christiansen/derive-all-the-instances

This is a package for deriving implementations of common functions and interfaces in Idris2. It's intended to alleviate the tedium of writing your own instances, especially for things like newtypes which is just a whole lot of copypasting of wrapping.

It's pretty basic just now but so is elaborator reflection.

Installation

You can install via idris2 directly:
idris2 --install package.ipkg
Or via the Makefile:
make install
Or via the sae tool: sae-linux install

Version

This package follows Haskell PVP which is distinct from SEMVER in that when examining 1.2.3, 1.2 is the Major Version rather than 1.