Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

derive

A cli app for auto deriving functions that similar to GHC's deriving system.

Supported functions

Currently supports:

  • Show: by pub fun type-name/show(t : type-name) // : string (maybe <div>)
  • Eq: by pub fun type-name/eq(t1, t2) // : bool (maybe <div>), and operator (==)

Usage

derive - auto derive functions for types and structs in koka.
Usage: derive [options] [FILE]

Options:
  -i, --input <file>       Input file, could also be argument
  -o, --output <file>      Output file (defaults to input file)
  -d, --derivable <kind>   Derivable kind: show (default) or eq
  -V, --verbose            Verbose output
  -r, --dry-run            Print result without writing
  -v, --version            Show version
  -h, --help               Show this message

Arguments:
  FILE                     Input file, could also be -i

About

cli for auto deriving koka functions like show and eq

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages