Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
getAppsBy :: (Semigroup b, Show err, FromJSON resolvers) => (ByteString -> Either err schema, schema -> resolvers -> b) -> FileUrl -> IO b Source #
testSchema :: (ToJSON err, Eq err, FromJSON err) => (ByteString -> Either err a) -> FileUrl -> TestTree Source #
testQueryRendering :: (ToJSON errors, Show errors, FromJSON request) => (schema -> request -> Either errors ByteString, ByteString -> Either errors schema) -> FileUrl -> FileUrl -> TestTree Source #
renderingAssertion :: ToJSON e => (FileUrl -> IO (Either e ByteString)) -> FileUrl -> TestTree Source #
testQuery :: (FromJSON req, ToJSON err, Eq err, FromJSON err) => (req -> Either err a) -> FileUrl -> TestTree Source #