summoner-tui-2.0.1.0: Tool for scaffolding fully configured batteries-included production-level Haskell projects using TUI.
Copyright(c) 2018-2019 Kowainik
LicenseMPL-2.0
MaintainerKowainik <xrom.xkov@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Summoner.Tui.Validation

Description

This module contains function to validate Form fields.

Synopsis

Documentation

ctrlD :: KitForm e -> KitForm e Source #

Clears the Text fields by Ctrl + d key combination.

summonFormValidation :: forall e. [FilePath] -> KitForm e -> KitForm e Source #

Validates the main new command form.

formErrorMessages :: [FilePath] -> KitForm e -> [String] Source #

Returns list of error messages according to all invalid fields.

projectDescNewLine :: KitForm e -> KitForm e Source #

Adds a newline for project description.