trivialini-0.5.0.0: Ultra light weight ini file parser
Safe HaskellSafe-Inferred
LanguageHaskell2010

Trivialini.SafeTypes

Description

Ini data essentially consists of Strings, that cannot contain every character because of the simple format it is contained in. The types in this module are restricted to contain only allowed characters. They also can not be empty or start or end with whitespace. Values of these types can not be created with data constructors. Use the mk* functions instead!

Synopsis

Safe String types

data IniHeading Source #

A section heading

data IniKey Source #

A key of a key-value pair

Instances

Instances details
IsString IniKey Source # 
Instance details

Defined in Trivialini.SafeTypes

Methods

fromString :: String -> IniKey #

Show IniKey Source # 
Instance details

Defined in Trivialini.SafeTypes

Eq IniKey Source # 
Instance details

Defined in Trivialini.SafeTypes

Methods

(==) :: IniKey -> IniKey -> Bool #

(/=) :: IniKey -> IniKey -> Bool #

Ord IniKey Source # 
Instance details

Defined in Trivialini.SafeTypes

data IniValue Source #

A value of a key-value pair

Instances

Instances details
IsString IniValue Source # 
Instance details

Defined in Trivialini.SafeTypes

Show IniValue Source # 
Instance details

Defined in Trivialini.SafeTypes

Eq IniValue Source # 
Instance details

Defined in Trivialini.SafeTypes

Ord IniValue Source # 
Instance details

Defined in Trivialini.SafeTypes

Value creation

Validity predicates

Invalid character lists (useful for parsers)

Utility predicate