prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Create shortcut function for GraphQLMiddleware.make_simple_server
  Getting started with Ariadne could be made even simpler by providing shortcut function abstracting the `GraphQLMiddleware` away on first contact, thus saving users possible confusion about what they really are doing.
  
  </issue>
  <code>
  [start of ariadne/utils.py]
  1 from graphql import parse
  2 
  3 
  4 def gql(value: str) -> str:
  5     parse(value)
  6     return value
  7
  [end of ariadne/utils.py]
  [start of ariadne/__init__.py]
  1 from .executable_schema import make_executable_schema
  2 from .resolvers import add_resolve_functions_to_schema, default_resolver, resolve_to
  3 from .utils import gql
  4 from .wsgi_middleware import GraphQLMiddleware
  5 
  6 __all__ = [
  7     "GraphQLMiddleware",
  8     "add_resolve_functions_to_schema",
  9     "default_resolver",
  10     "make_executable_schema",
  11     "resolve_to",
  12     "gql",
  13 ]
  14
  [end of ariadne/__init__.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/ariadne/__init__.py b/ariadne/__init__.py
  --- a/ariadne/__init__.py
  +++ b/ariadne/__init__.py
  @@ -1,6 +1,6 @@
   from .executable_schema import make_executable_schema
   from .resolvers import add_resolve_functions_to_schema, default_resolver, resolve_to
  -from .utils import gql
  +from .utils import gql, start_simple_server
   from .wsgi_middleware import GraphQLMiddleware
   
   __all__ = [
  @@ -10,4 +10,5 @@
       "make_executable_schema",
       "resolve_to",
       "gql",
  +    "start_simple_server",
   ]
  diff --git a/ariadne/utils.py b/ariadne/utils.py
  --- a/ariadne/utils.py
  +++ b/ariadne/utils.py
  @@ -1,6 +1,26 @@
  +from typing import List, Union
  +
   from graphql import parse
   
  +from .wsgi_middleware import GraphQLMiddleware
  +
   
   def gql(value: str) -> str:
       parse(value)
       return value
  +
  +
  +def start_simple_server(
  +    type_defs: Union[str, List[str]],
  +    resolvers: Union[dict, List[dict]],
  +    host: str = "127.0.0.1",
  +    port: int = 8888,
  +):
  +    try:
  +        print("Simple GraphQL server is running on the http://%s:%s" % (host, port))
  +        graphql_server = GraphQLMiddleware.make_simple_server(
  +            type_defs, resolvers, host, port
  +        )
  +        graphql_server.serve_forever()
  +    except KeyboardInterrupt:
  +        pass
  
verification_info: {"golden_diff": "diff --git a/ariadne/__init__.py b/ariadne/__init__.py\n--- a/ariadne/__init__.py\n+++ b/ariadne/__init__.py\n@@ -1,6 +1,6 @@\n from .executable_schema import make_executable_schema\n from .resolvers import add_resolve_functions_to_schema, default_resolver, resolve_to\n-from .utils import gql\n+from .utils import gql, start_simple_server\n from .wsgi_middleware import GraphQLMiddleware\n \n __all__ = [\n@@ -10,4 +10,5 @@\n     \"make_executable_schema\",\n     \"resolve_to\",\n     \"gql\",\n+    \"start_simple_server\",\n ]\ndiff --git a/ariadne/utils.py b/ariadne/utils.py\n--- a/ariadne/utils.py\n+++ b/ariadne/utils.py\n@@ -1,6 +1,26 @@\n+from typing import List, Union\n+\n from graphql import parse\n \n+from .wsgi_middleware import GraphQLMiddleware\n+\n \n def gql(value: str) -> str:\n     parse(value)\n     return value\n+\n+\n+def start_simple_server(\n+    type_defs: Union[str, List[str]],\n+    resolvers: Union[dict, List[dict]],\n+    host: str = \"127.0.0.1\",\n+    port: int = 8888,\n+):\n+    try:\n+        print(\"Simple GraphQL server is running on the http://%s:%s\" % (host, port))\n+        graphql_server = GraphQLMiddleware.make_simple_server(\n+            type_defs, resolvers, host, port\n+        )\n+        graphql_server.serve_forever()\n+    except KeyboardInterrupt:\n+        pass\n", "issue": "Create shortcut function for GraphQLMiddleware.make_simple_server\nGetting started with Ariadne could be made even simpler by providing shortcut function abstracting the `GraphQLMiddleware` away on first contact, thus saving users possible confusion about what they really are doing.\n", "before_files": [{"content": "from graphql import parse\n\n\ndef gql(value: str) -> str:\n    parse(value)\n    return value\n", "path": "ariadne/utils.py"}, {"content": "from .executable_schema import make_executable_schema\nfrom .resolvers import add_resolve_functions_to_schema, default_resolver, resolve_to\nfrom .utils import gql\nfrom .wsgi_middleware import GraphQLMiddleware\n\n__all__ = [\n    \"GraphQLMiddleware\",\n    \"add_resolve_functions_to_schema\",\n    \"default_resolver\",\n    \"make_executable_schema\",\n    \"resolve_to\",\n    \"gql\",\n]\n", "path": "ariadne/__init__.py"}]}