ribosome-host-0.9.9.9: Neovim plugin host for Polysemy
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ribosome.Host.Optparse

Description

Combinators for optparse-applicative.

Synopsis

Documentation

somePath :: Path Abs Dir -> SomeBase t -> Path Abs t Source #

Convert a path to absolute, using the first argument as base dir for relative paths.

severityOption :: ReadM Severity Source #

A logging severity option for optparse-applicative.

readPath :: String -> (String -> Either e (SomeBase t)) -> Path Abs Dir -> String -> ReadM (Path Abs t) Source #

Parse a path from a string in ReadM.

pathOption :: String -> (String -> Either e (SomeBase t)) -> Path Abs Dir -> ReadM (Path Abs t) Source #

A path option for optparse-applicative.

dirPathOption :: Path Abs Dir -> ReadM (Path Abs Dir) Source #

A directory path option for optparse-applicative.

filePathOption :: Path Abs Dir -> ReadM (Path Abs File) Source #

A file path option for optparse-applicative.