agda2train
Safe HaskellSafe-Inferred
LanguageHaskell2010

Main

Description

Main driver for the agda2train executable.

Synopsis

Documentation

main :: IO () Source #

The main entrypoint for the agda2train executable.

mkBackend :: TrainF -> Backend' Options Options ([ScopeEntry], [ScopeEntry]) () (String, [Sample]) Source #

Make an Agda backend from a given training function (c.f. TrainF).

Command-line flags

data Options Source #

Available options to configure how agda2train generates training data:

recurse
whether to recursively generate data from all transitive dependencies
noJson
mock run without generating any actual JSON files
ignoreJson
compile everything from scratch
includeDefs
whether to include definitions in scope, or just their type
includePrivs
whether to include private definitions as well

(run agda2train -h/--help for a human-readable description of all options)

Instances

Instances details
Generic Options Source # 
Instance details

Defined in Main

Associated Types

type Rep Options :: Type -> Type #

Methods

from :: Options -> Rep Options x #

to :: Rep Options x -> Options #

NFData Options Source # 
Instance details

Defined in Main

Methods

rnf :: Options -> () #

type Rep Options Source # 
Instance details

Defined in Main

defaultOptions :: Options Source #

The default options.

JSON encoding

encode :: ToJSON a => a -> ByteString Source #

Uses Aeson.Pretty to order the JSON fields.

encodeFile :: ToJSON a => FilePath -> a -> IO () Source #