1module Test.Negative.MissingDep where
4import Data.Newtype (un)
6import Yoga.Om.Layer (OmLayer, makeLayer, combineRequirements)
8type Config = { port :: Int }
9type Logger = { log :: String -> String }
11needsConfig :: OmLayer (config :: Config) (logger :: Logger) ()
12needsConfig = makeLayer do
14 pure { logger: { log: \msg -> "[" <> show config.port <> "] " <> msg } }
16-- This should NOT compile - missing config!
17badLayer :: OmLayer () (logger :: Logger) ()
18badLayer = combineRequirements needsConfig 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