Copyright | (c) 2018-2022 Kowainik |
---|---|
License | MPL-2.0 |
Maintainer | Kowainik <xrom.xkov@gmail.com> |
Stability | Stable |
Portability | Portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Implementation of key type. The type is used for key-value pairs and table names.
Since: 1.3.0.0
Core types
Key of value in key = val
pair. Represents as non-empty list of key
components — Piece
s. Key like
site."google.com"
is represented like
Key (Piece "site" :| [Piece "\"google.com\""])
Since: 0.0.0
Instances
IsString Key Source # | Split a dot-separated string into This instance is not safe for now. Use carefully. If you try to use as a key
string like this Since: 0.1.0 |
Defined in Toml.Type.Key fromString :: String -> Key # | |
Semigroup Key Source # | |
Generic Key Source # | |
Show Key Source # | |
NFData Key Source # | |
Defined in Toml.Type.Key | |
Eq Key Source # | |
Ord Key Source # | |
Hashable Key Source # | |
Defined in Toml.Type.Key | |
type Rep Key Source # | |
Defined in Toml.Type.Key |
Represents the key piece of some layer.
Since: 0.0.0
Instances
IsString Piece Source # | |
Defined in Toml.Type.Key fromString :: String -> Piece # | |
Generic Piece Source # | |
Show Piece Source # | |
NFData Piece Source # | |
Defined in Toml.Type.Key | |
Eq Piece Source # | |
Ord Piece Source # | |
Hashable Piece Source # | |
Defined in Toml.Type.Key | |
type Rep Piece Source # | |
Defined in Toml.Type.Key |
pattern (:||) :: Piece -> [Piece] -> Key Source #
Bidirectional pattern synonym for constructing and deconstructing Key
s.
Key difference
Data represent difference between two keys.
Since: 0.0.0