     ctx.preDeclare name,
       id: id
       type: explicitType
-      docs: documentation
+      docs: extractDocs docs
   explicitType
 
 preDeclarePatterns = (ctx, patterns) ->

      malformed ctx, call, 'Missing function result'
    else
      [docs, defs] = partition isComment, defs
      map labelComments, docs
      if isTypeAnnotation defs[0]
        [type, body, wheres...] = defs
      else


      # Predeclare type
      if name = ctx.isAtSimpleDefinition()
        # Explicit typing
        if type
          compiledType = typeConstrainedCompile ctx, type
          explicitType = preDeclareExplicitlyTyped ctx, compiledType, docs
          ctx.assignArity name, paramNames
        else
          documentation = extractDocs docs
          ctx.preDeclare name,
            arity: paramNames
            id: ctx.definitionId()
