summaryrefslogtreecommitdiff
path: root/tests/Test/StarWars/Data.hs
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2020-06-29 13:14:23 +0200
committerEugen Wissner <belka@caraus.de>2020-06-29 13:14:23 +0200
commit705e506c13b6c0f67ddf0195fa0d3256e7e4f9c3 (patch)
tree58e41bdbd246fc5b947a848283d6688c7ddf636b /tests/Test/StarWars/Data.hs
parent9798b08b4c25685e92a7f537f68f35994a5a4899 (diff)
downloadgraphql-705e506c13b6c0f67ddf0195fa0d3256e7e4f9c3.tar.gz
Combine Resolver and ActionT in ResolverT
Diffstat (limited to 'tests/Test/StarWars/Data.hs')
-rw-r--r--tests/Test/StarWars/Data.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Test/StarWars/Data.hs b/tests/Test/StarWars/Data.hs
index 427371b..d0806f9 100644
--- a/tests/Test/StarWars/Data.hs
+++ b/tests/Test/StarWars/Data.hs
@@ -66,8 +66,8 @@ appearsIn :: Character -> [Int]
appearsIn (Left x) = _appearsIn . _droidChar $ x
appearsIn (Right x) = _appearsIn . _humanChar $ x
-secretBackstory :: ActionT Identity Text
-secretBackstory = ActionT $ throwE "secretBackstory is secret."
+secretBackstory :: ResolverT Identity Text
+secretBackstory = ResolverT $ throwE "secretBackstory is secret."
typeName :: Character -> Text
typeName = either (const "Droid") (const "Human")