1module Test.Negative.ShowDiff where
7import Yoga.Om.Layer (OmLayer, makeLayer, runLayer)
9type Config = { port :: Int }
10type Logger = { log :: String -> Effect Unit }
11type Database = { query :: String -> Effect (Array String) }
12type Cache = { get :: String -> Effect Unit }
14-- Needs THREE dependencies
15needsThree :: OmLayer (config :: Config, logger :: Logger, database :: Database) (cache :: Cache) ()
16needsThree = makeLayer do
17 { config, logger, database } <- Om.ask
18 pure { cache: { get: \_ -> pure unit } }
20-- Provides only ONE - should show a nice diff!
21testShowDiff :: Om (Record (logger :: Logger)) () (Record (cache :: Cache))
22testShowDiff = runLayer { logger: { log: \_ -> pure unit } } 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