| Copyright | (c) 2019 Lucas David Traverso |
|---|---|
| License | MPL-2.0 |
| Maintainer | Lucas David Traverso <[email protected]> |
| Stability | stable |
| Portability | portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Conferer.Source.InMemory
Description
In memory source mostly used for testing
Synopsis
- newtype InMemorySource = InMemorySource {}
- fromConfig :: [(Key, Text)] -> SourceCreator
- fromMap :: Map Key Text -> Source
- fromAssociations :: [(Key, Text)] -> Source
Documentation
newtype InMemorySource Source #
Constructors
| InMemorySource | |
Instances
| Eq InMemorySource Source # | |
Defined in Conferer.Source.InMemory Methods (==) :: InMemorySource -> InMemorySource -> Bool # (/=) :: InMemorySource -> InMemorySource -> Bool # | |
| Show InMemorySource Source # | |
Defined in Conferer.Source.InMemory Methods showsPrec :: Int -> InMemorySource -> ShowS # show :: InMemorySource -> String # showList :: [InMemorySource] -> ShowS # | |
| IsSource InMemorySource Source # | |
Defined in Conferer.Source.InMemory Methods getKeyInSource :: InMemorySource -> Key -> IO (Maybe Text) Source # getSubkeysInSource :: InMemorySource -> Key -> IO [Key] Source # | |
fromConfig :: [(Key, Text)] -> SourceCreator Source #
Create a SourceCreator from a list of associations