1module Test.Negative.DuplicateProvides where
6import Yoga.Om.Layer (OmLayer, makeLayer, combineRequirements)
8type Config = { port :: Int }
9type Logger = { log :: String -> Effect Unit }
11-- Both layers provide logger!
12layer1 :: OmLayer (config :: Config) (logger :: Logger) ()
15 pure { logger: { log: \msg -> pure unit } }
17layer2 :: OmLayer (config :: Config) (logger :: Logger) ()
20 pure { logger: { log: \msg -> pure unit } }
22-- What happens when we combine them?
23combined :: OmLayer (config :: Config) (logger :: Logger) ()
24combined = combineRequirements layer1 layer2
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