UNPKG

@markandrus/effect-derive

Version:

Derive Covariant (Functor), Foldable, and Traversable instances, as well as base functors, for algebraic data types (ADTs)

16 lines (15 loc) 520 B
import { OutFile } from './OutFile'; export type Registry = Map<string, [holeIndex: number, fn: string]>; export interface Registries { covariant: Registry; foldable: Registry; traversable: Registry; typeLambda: Registry; } export interface RegistryFlags { covariant: string[]; foldable: string[]; traversable: string[]; typeLambda: string[]; } export declare function parseRegistryFlags(cwd: string, inFilePath: string, outFilePath: string, flags: RegistryFlags): [Registries, OutFile];