From a2eb431015544c464af32a155cc0fb8366c95fa4 Mon Sep 17 00:00:00 2001 From: Paul Cadman Date: Mon, 23 Oct 2023 12:45:28 +0100 Subject: [PATCH] Fix formatting --- test/Package/Positive.hs | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/test/Package/Positive.hs b/test/Package/Positive.hs index e4cd7a49d4..aa496c0c91 100644 --- a/test/Package/Positive.hs +++ b/test/Package/Positive.hs @@ -38,25 +38,27 @@ allTests = packageLoadingTests :: [PosTest] packageLoadingTests = - [ - PosTest + [ PosTest "empty YAML is valid" $(mkRelDir "YamlEmpty") - $ \p _ -> if - | p ^. packageName == defaultPackageName -> Nothing - | otherwise -> Just "Package did not have default name", + $ \p _ -> + if + | p ^. packageName == defaultPackageName -> Nothing + | otherwise -> Just "Package did not have default name", PosTest "no dependencies uses default stdlib" $(mkRelDir "YamlNoDependencies") $ \p b -> case p ^? packageDependencies . _head of - Just d -> if - | d == defaultStdlibDep b -> Nothing - | otherwise -> Just "Package dependency is not the default standard library" - _ -> Just "The package has no dependencies", + Just d -> + if + | d == defaultStdlibDep b -> Nothing + | otherwise -> Just "Package dependency is not the default standard library" + _ -> Just "The package has no dependencies", PosTest "empty dependencies does not use default stdlib" $(mkRelDir "YamlEmptyDependencies") - $ \p _ -> if - | null (p ^. packageDependencies) -> Nothing - | otherwise -> Just "Expected dependencies to be empty" + $ \p _ -> + if + | null (p ^. packageDependencies) -> Nothing + | otherwise -> Just "Expected dependencies to be empty" ]