1module Test.Negative.MultipleMissing where
4import Data.Maybe (Maybe(..))
8import Yoga.Om.Layer (OmLayer, makeLayer, runLayer)
10type Config = { port :: Int }
11type Logger = { log :: String -> Effect Unit }
12type Database = { query :: String -> Effect (Array String) }
13type Cache = { get :: String -> Effect (Maybe String) }
15-- Needs THREE dependencies
16needsThree :: OmLayer (config :: Config, logger :: Logger, database :: Database) (cache :: Cache) ()
17needsThree = makeLayer do
18 { config, logger, database } <- Om.ask
19 pure { cache: { get: \_ -> pure Nothing } }
21-- Provides NONE of them - what error do we get?
22testMultipleMissing :: Om (Record ()) () (Record (cache :: Cache))
23testMultipleMissing = runLayer {} needsThree
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list