@@ -5,12 +5,11 @@ import Prelude
55import Control.Monad.Error.Class (class MonadError, throwError)
66import Data.Argonaut (printJsonDecodeError)
77import Data.Argonaut as Json
8−import Data.Array (find)
98import Data.Array as Array
109import Data.Bifunctor (lmap)
1110import Data.Either (Either(..), note)
1211import Data.Enum (class Enum, enumFromTo)
13−import Data.List (List, fromFoldable)
12+import Data.List (List, fromFoldable, find)
1413import Data.Map (empty, insert, lookup)
1514import Data.Maybe (Maybe(..), fromMaybe)
1615import Data.Newtype (unwrap)
@@ -412,7 +411,7 @@ infixl 5 withField as :>
412411
413412-- | A type class that contrains the relationship between defined arguments and the _argument_
414413-- | parameter of a resolver.
415−class ArgsDefToArgsParam (argsd :: # Type) (argsp :: # Type)
414+class ArgsDefToArgsParam (argsd :: Row Type) (argsp :: Row Type)
416415 | argsd -> argsp
417416 , argsp -> argsd where
418417 argsFromDefinition ::
@@ -433,10 +432,10 @@ instance argsDefToArgsParamImpl ::
433432
434433-- | ArgsDefToArgsParam that works on row lists for matching implementations
435434class ArgsFromRows
436− (largsd :: RL.RowList)
437− (largsp :: RL.RowList)
438− (argsd :: # Type)
439− (argsp :: # Type)
435+ (largsd :: RL.RowList Type)
436+ (largsp :: RL.RowList Type)
437+ (argsd :: Row Type)
438+ (argsp :: Row Type)
440439 where
441440 argsFromRows ::
442441 RLProxy largsd ->
@@ -688,7 +687,7 @@ enumType name = EnumType { name, description: Nothing, values }
688687 EnumValue { name: show value, description: Nothing, value, isValue: eq value }
689688
690689
691−class UnionDefinition (defRow :: # Type) (varRow :: # Type) (ctx :: Type -> Type)
690+class UnionDefinition (defRow :: Row Type) (varRow :: Row Type) (ctx :: Type -> Type)
692691 | defRow -> varRow
693692 , varRow -> defRow where
694693 union ::
@@ -721,8 +720,8 @@ instance unionDefinitionInstance ::
721720
722721
723722class UnionIntrospection
724− (defRowList :: RL.RowList)
725− (defRow :: # Type)
723+ (defRowList :: RL.RowList Type)
724+ (defRow :: Row Type)
726725 where
727726 unionIntrospection ::
728727 RLProxy defRowList ->
@@ -755,10 +754,10 @@ else instance unionIntrospectionNil :: UnionIntrospection RL.Nil defRow where
755754
756755
757756class UnionResolver
758− (defRowList :: RL.RowList)
759− (varRowList :: RL.RowList)
760− (defRow :: # Type)
761− (varRow :: # Type)
757+ (defRowList :: RL.RowList Type)
758+ (varRowList :: RL.RowList Type)
759+ (defRow :: Row Type)
760+ (varRow :: Row Type)
762761 (ctx :: Type -> Type)
763762 where
764763 unionResolver ::