| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sat, 17 Jan 2026 18:59:36 GMT
X-Served-By: cache-dfw-kdfw8210107-DFW, cache-bom-vanm7210098-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768676376.132587,VS0,VE303
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
morpheus-graphql-app: Morpheus GraphQL App
morpheus-graphql-app: Morpheus GraphQL App
Modules
[Index] [Quick Jump]
Downloads
- morpheus-graphql-app-0.28.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.17.0, 0.18.0, 0.19.0, 0.19.1, 0.19.2, 0.19.3, 0.20.0, 0.20.1, 0.21.0, 0.22.0, 0.22.1, 0.23.0, 0.24.0, 0.24.1, 0.24.2, 0.24.3, 0.25.0, 0.26.0, 0.27.0, 0.27.1, 0.27.2, 0.27.3, 0.28.0, 0.28.1, 0.28.2 |
|---|---|
| Change log | changelog.md |
| Dependencies | aeson (>=1.4.4 && <3.0.0), attoparsec-aeson (>=2.1.0.0 && <3.0.0), base (>=4.7.0 && <5.0.0), bytestring (>=0.10.4 && <1.0.0), containers (>=0.4.2.1 && <1.0.0), hashable (>=1.0.0 && <2.0.0), megaparsec (>=7.0.0 && <10.0.0), morpheus-graphql-core (>=0.28.0 && <0.29.0), mtl (>=2.0.0 && <3.0.0), relude (>=0.3.0 && <2.0.0), scientific (>=0.3.6.2 && <0.4.0), template-haskell (>=2.0.0 && <3.0.0), text (>=1.2.3 && <3.0.0), th-lift-instances (>=0.1.1 && <1.0.0), transformers (>=0.3.0 && <1.0.0), unordered-containers (>=0.2.8 && <1.0.0), vector (>=0.12.0.1 && <1.0.0) [details] |
| License | MIT |
| Copyright | (c) 2019 Daviti Nalchevanidze |
| Author | Daviti Nalchevanidze |
| Maintainer | d.nalchevanidze@gmail.com |
| Uploaded | by nalchevanidze at 2025-12-25T18:37:36Z |
| Category | web, graphql |
| Home page | https://morpheusgraphql.com |
| Bug tracker | https://github.com/nalchevanidze/morpheus-graphql-app/issues |
| Source repo | head: git clone https://github.com/nalchevanidze/morpheus-graphql-app |
| Distributions | LTSHaskell:0.28.2, NixOS:0.28.1, Stackage:0.28.2 |
| Reverse Dependencies | 3 direct, 2 indirect [details] |
| Downloads | 3836 total (103 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2025-12-25 [all 1 reports] |
Readme for morpheus-graphql-app-0.28.2
[back to package description]Morpheus GraphQL App
provides utilities for creating executable GraphQL applications for servers. You can use it to create a schema-first GraphQL server with dynamic typings.
Build schema-first GraphQL App with dynamic typings
schema.gql
type Deity {
name: String
power: [String!]
}
type Query {
deity(id: ID): Deity
}
App.hs
deityResolver :: Monad m => NamedResolverFunction QUERY e m
deityResolver arg =
object
[ ("name", pure "Morpheus"),
("power", pure $ list [enum "Shapeshifting"])
]
resolver :: Monad m => RootResolverValue e m
resolver =
queryResolvers
[ ( "Query", const $ object [("deity", ref "Deity" <$> getArgument "id")]),
("Deity", deityResolver)
]
api :: ByteString -> IO ByteString
api query = do
schema <- LBS.readFile "./schema.gql" >>= resultOr (fail . show) pure . parseSchema
runApp (mkApp schema resolver) query