1module Test.Negative.MissingConfigRun where
7import Yoga.Om.Layer (OmLayer, makeLayer, runLayer)
9type Config = { port :: Int, host :: String }
10type Logger = { log :: String -> Effect Unit }
12-- This layer needs config
13needsConfig :: OmLayer (config :: Config) (logger :: Logger) ()
14needsConfig = makeLayer do
16 pure { logger: { log: \msg -> pure unit } }
18-- This should NOT compile - trying to run needsConfig without providing config
19testMissingConfigRun :: Om (Record ()) () (Record (logger :: Logger))
20testMissingConfigRun = 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