@@ -120,7 +120,7 @@ typeCheckAll mainModuleName moduleName (d@(DataDeclaration dtype name args dctor
120120 return $ d : ds
121121 where
122122 checkNewtype :: [(ProperName, [Type])] -> Check ()
123− checkNewtype [(_, [ty])] = return ()
123+ checkNewtype [(_, [_])] = return ()
124124 checkNewtype [(_, _)] = throwError . strMsg $ "newtypes constructors must have a single argument"
125125 checkNewtype _ = throwError . strMsg $ "newtypes must have a single constructor"
126126typeCheckAll mainModuleName moduleName (d@(DataBindingGroupDeclaration tys) : rest) = do