| Copyright | (c) 2018-2022 Kowainik |
|---|---|
| License | MPL-2.0 |
| Maintainer | Kowainik <xrom.xkov@gmail.com> |
| Stability | Stable |
| Portability | Portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Toml.Type.Key
Contents
Description
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 — Pieces. Key like
site."google.com"
is represented like
Key (Piece "site" :| [Piece "\"google.com\""])
Since: 0.0.0
Instances
| IsString Key # | 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 Methods fromString :: String -> Key # | |||||
| Semigroup Key # | |||||
| Generic Key # | |||||
Defined in Toml.Type.Key Associated Types
| |||||
| Show Key # | |||||
| NFData Key # | |||||
Defined in Toml.Type.Key | |||||
| Eq Key # | |||||
| Ord Key # | |||||
| Hashable Key # | |||||
Defined in Toml.Type.Key | |||||
| type Rep Key # | |||||
Defined in Toml.Type.Key | |||||
Represents the key piece of some layer.
Since: 0.0.0
Instances
| IsString Piece # | |||||
Defined in Toml.Type.Key Methods fromString :: String -> Piece # | |||||
| Generic Piece # | |||||
Defined in Toml.Type.Key Associated Types
| |||||
| Show Piece # | |||||
| NFData Piece # | |||||
Defined in Toml.Type.Key | |||||
| Eq Piece # | |||||
| Ord Piece # | |||||
| Hashable Piece # | |||||
Defined in Toml.Type.Key | |||||
| type Rep Piece # | |||||
Defined in Toml.Type.Key | |||||
pattern (:||) :: Piece -> [Piece] -> Key #
Bidirectional pattern synonym for constructing and deconstructing Keys.
Key difference
Data represent difference between two keys.
Since: 0.0.0