morpheus-graphql-0.8.0: Morpheus GraphQL

Safe HaskellNone
LanguageHaskell2010

Data.Morpheus.Client

Documentation

class Fetch a where Source #

Minimal complete definition

fetch

Associated Types

type Args a :: * Source #

Methods

__fetch :: (Monad m, Show a, ToJSON (Args a), FromJSON a) => String -> String -> (ByteString -> m ByteString) -> Args a -> m (Either String a) Source #

fetch :: (Monad m, FromJSON a) => (ByteString -> m ByteString) -> Args a -> m (Either String a) Source #

defineQuery :: IO (Validation DataTypeLib) -> (GQLQuery, String) -> Q [Dec] Source #