From 17631c7294ee21a48f78ce4e51c827da93b501fa Mon Sep 17 00:00:00 2001 From: stuebinm Date: Fri, 7 Jun 2024 17:22:08 +0200 Subject: allow for non-required config options --- test/Main.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/Main.hs b/test/Main.hs index 99b01d8..5c01f64 100644 --- a/test/Main.hs +++ b/test/Main.hs @@ -31,12 +31,12 @@ instance Arbitrary TestNested where instance Config TestFlat where readConfig = TestType - <$> readValue (Key ["foo"]) - <*> readValue (Key ["bar"]) + <$> readRequiredValue (Key ["foo"]) + <*> readRequiredValue (Key ["bar"]) instance Config TestNested where readConfig = TestNested - <$> readValue (Key ["foo"]) + <$> readRequiredValue (Key ["foo"]) <*> readNested (Key ["nested"]) testTypeToTrivial :: TestFlat -> SomeSource -- cgit v1.2.3