effects-optparse
Safe HaskellNone
LanguageGHC2021

Effects.Optparse

Contents

Description

Provides the MonadOptparse typeclass.

Since: 0.1

Synopsis

Effect

class Monad m => MonadOptparse (m :: Type -> Type) where Source #

Effects for optparse-applicative.

The vast majority of optparse-applicative is not re-exported, as most of the interface is pure. This is merely the functions needed to run a parser.

Since: 0.1

Instances

Instances details
MonadOptparse IO Source #

Since: 0.1

Instance details

Defined in Effects.Optparse

MonadOptparse m => MonadOptparse (ReaderT env m) Source #

Since: 0.1

Instance details

Defined in Effects.Optparse

Misc

type OsPath = OsString #

Type representing filenames/pathnames.

This type doesn't add any guarantees over OsString.

osPath :: ReadM OsPath Source #

OsPath Option reader.

Since: 0.1

validOsPath :: ReadM OsPath Source #

OsPath Option reader. This includes validation i.e. fails if the path is considered invalid on the given platform.

Since: 0.1