arch-hs-0.11.1.0: Distribute hackage packages to archlinux
Copyright(c) 2020-2021 berberman
LicenseMIT
Maintainerberberman <berberman@yandex.com>
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Distribution.ArchHs.Options

Description

This module contains CLI parsers used in executables. Options.Applicative.Simple is re-exported.

Synopsis

Load Extra DB

newtype ExtraDBOptions Source #

Parsed options for loading [extra]

extraDBOptionsParser :: Parser ExtraDBOptions Source #

CLI options parser of ExtraDBOptions

When alpm is enabled, it reads a flag no-alpm-extra; otherwise it reads a string option extra.

Load files DB

newtype FilesDBOptions Source #

Parsed options for loading FilesDB

filesDBOptionsParser :: Parser FilesDBOptions Source #

CLI options parser of ExtraDBOptions

When alpm is enabled, it reads a flag no-alpm-files; otherwise it reads a string option files.

Load Hackage DB

newtype HackageDBOptions Source #

Parsed options for loading HackageDB

hackageDBOptionsParser :: Parser HackageDBOptions Source #

CLI options parser that reads a string option hackage.

Parse flags

optFlagAssignmentParser :: Parser (Map PackageName FlagAssignment) Source #

CLI options parser of flag assignments

optFlagReader :: ReadM (String, String, Bool) Source #

Read a flag assignment like package_name:flag_name:true|false

Readers

optPackageNameReader :: ReadM PackageName Source #

Read a PackageName This function never fails, because it just wraps the input string with mkPackageName.

optVersionReader :: ReadM Version Source #

Read a Version This function calls simpleParsec.