cartel-0.14.2.2: Specify Cabal files in Haskell

Safe HaskellSafe-Inferred
LanguageHaskell2010

Cartel.Types

Synopsis

Documentation

type NonEmptyString = String Source

A non-empty string. This string should never be empty. It is used where, for example, a field in a Cabal file is required to have a value and that value cannot be empty. In contrast, Cartel uses an ordinary String for values that can be empty.

This is only a type synonym, so nothing in the type system enforces that these strings must be non-empty. Typically though, Cabal will give you grief about the file that Cartel generates if you used an empty value for a NonEmptyString.