diff options
author | stuebinm | 2024-06-07 17:22:08 +0200 |
---|---|---|
committer | stuebinm | 2024-06-07 17:22:08 +0200 |
commit | 17631c7294ee21a48f78ce4e51c827da93b501fa (patch) | |
tree | 4d1a25408bdc0ebac5d9251181e9ab69381c7b4c /test | |
parent | e3cafcd9a1fc8621fdaaf33d1772bdcd8390d2bf (diff) |
allow for non-required config options
Diffstat (limited to 'test')
-rw-r--r-- | test/Main.hs | 6 |
1 files changed, 3 insertions, 3 deletions
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 |