Skip to content

MarcelineVQ/idris2-elab-deriving

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.