Copyright | (c) 2019 Lucas David Traverso |
---|---|
License | MPL-2.0 |
Maintainer | Lucas David Traverso <lucas6246@gmail.com> |
Stability | stable |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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 #
Instances
Eq InMemorySource Source # | |
Defined in Conferer.Source.InMemory (==) :: InMemorySource -> InMemorySource -> Bool # (/=) :: InMemorySource -> InMemorySource -> Bool # | |
Show InMemorySource Source # | |
Defined in Conferer.Source.InMemory showsPrec :: Int -> InMemorySource -> ShowS # show :: InMemorySource -> String # showList :: [InMemorySource] -> ShowS # | |
IsSource InMemorySource Source # | |
Defined in Conferer.Source.InMemory 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