forked from OSS/graphql
add tests for errors in queries for queries in starwars tests
This commit is contained in:
@ -56,6 +56,9 @@ appearsIn :: Character -> [Int]
|
||||
appearsIn (Left x) = _appearsIn . _droidChar $ x
|
||||
appearsIn (Right x) = _appearsIn . _humanChar $ x
|
||||
|
||||
secretBackstory :: Character -> Text
|
||||
secretBackstory = error "secretBackstory is secret."
|
||||
|
||||
luke :: Character
|
||||
luke = Right luke'
|
||||
|
||||
|
Reference in New Issue
Block a user