1module Test.Negative.MissingConfig where
7import Yoga.Om.Layer (OmLayer, makeLayer, runLayer)
9type Config = { port :: Int, host :: String }
10type Logger = { log :: String -> Effect Unit }
12needsConfig :: OmLayer (config :: Config) (logger :: Logger) ()
13needsConfig = makeLayer do
15 pure { logger: { log: \_ -> pure unit } }
17-- This should NOT compile - empty context, missing config
18testMissingConfig :: Om (Record ()) () (Record (logger :: Logger))
19testMissingConfig = runLayer {} needsConfig
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