From c5fe660bf68123a5ae4a8ba9a1fe94ed14bcd7ec Mon Sep 17 00:00:00 2001 From: David Nalchevanidze Date: Mon, 8 Apr 2024 11:21:15 +0200 Subject: [PATCH] hlint (#856) --- .../src/Data/Morpheus/CodeGen/Server/Interpreting/Transform.hs | 2 +- morpheus-graphql-tests/src/Test/Morpheus.hs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/morpheus-graphql-code-gen/src/Data/Morpheus/CodeGen/Server/Interpreting/Transform.hs b/morpheus-graphql-code-gen/src/Data/Morpheus/CodeGen/Server/Interpreting/Transform.hs index 9feab14970..800efeaaab 100755 --- a/morpheus-graphql-code-gen/src/Data/Morpheus/CodeGen/Server/Interpreting/Transform.hs +++ b/morpheus-graphql-code-gen/src/Data/Morpheus/CodeGen/Server/Interpreting/Transform.hs @@ -151,7 +151,7 @@ mkPossibleTypesName = ("PossibleTypes" <>) genDirectiveDefinition :: CodeGenM m => DirectiveDefinition CONST -> m [ServerDeclaration] genDirectiveDefinition DirectiveDefinition {..} = do - fields <- traverse renderDataField (argument <$> toList directiveDefinitionArgs) + fields <- traverse (renderDataField . argument) (toList directiveDefinitionArgs) let typename = coerce directiveDefinitionName namespaceDirs <- getNamespaceDirs (unpackName typename) let cgTypeName = fromTypeName typename diff --git a/morpheus-graphql-tests/src/Test/Morpheus.hs b/morpheus-graphql-tests/src/Test/Morpheus.hs index 815aadd9a2..5fc71565a0 100644 --- a/morpheus-graphql-tests/src/Test/Morpheus.hs +++ b/morpheus-graphql-tests/src/Test/Morpheus.hs @@ -153,7 +153,7 @@ getAppsWIth :: [FilePath] -> IO b getAppsWIth f url [] = getAppBy f url -getAppsWIth f url (x : xs) = sconcat <$> traverse (getAppBy f) (file url <$> (x :| xs)) +getAppsWIth f url (x : xs) = sconcat <$> traverse (getAppBy f . file url) (x :| xs) getAppsBy :: (Semigroup b, Show err, FromJSON resolvers) =>