示例#1
0
    def get_types(self, filename = None, line = None, column = None):
        if not filename:
            filename = self.view.file_name()

        if (not line) or (not column):
            (r, c) = self.view.rowcol(self.view.sel()[0].b)
            line = r
            column = c

        module_name = None
        m = head_of(autocomplete.hsdev_client.module(file = filename))
        if m:
            module_name = m.name

        return haskell_type(self.view, filename, module_name, line, column)
示例#2
0
    def get_types(self, filename=None, line=None, column=None):
        if not filename:
            filename = self.view.file_name()

        if (not line) or (not column):
            (r, c) = self.view.rowcol(self.view.sel()[0].b)
            line = r
            column = c

        module_name = None
        m = head_of(hsdev.client.module(file=filename))
        if m:
            module_name = m.name

        return get_type(self.view, filename, module_name, line, column)
示例#3
0
def haskell_type_view(view, selection = None):
    filename = view.file_name()

    if selection is None:
        selection = view.sel()[0]

    (r, c) = view.rowcol(selection.b)
    line = r
    column = c

    module_name = None
    m = head_of(autocomplete.hsdev_client.module(file = filename))
    if m:
        module_name = m.name

    return haskell_type(view, filename, module_name, line, column)
示例#4
0
def get_type_view(view, selection=None):
    filename = view.file_name()

    if selection is None:
        selection = view.sel()[0]

    (r, c) = view.rowcol(selection.b)
    line = r
    column = c

    module_name = None
    m = head_of(hsdev.client.module(file=filename))
    if m:
        module_name = m.name

    return get_type(view, filename, module_name, line, column)
示例#5
0
def get_type_view(view, selection = None):
    filename = view.file_name()

    if selection is None:
        selection = view.sel()[0]

    (r, c) = view.rowcol(selection.b)
    line = r
    column = c

    module_name = None
    m = head_of(hsdev.client.module(file = filename))
    if m:
        module_name = m.name

    return get_type(view, filename, module_name, line, column)
示例#6
0
def haskell_type_view(view, selection=None):
    filename = view.file_name()

    if selection is None:
        selection = view.sel()[0]

    (r, c) = view.rowcol(selection.b)
    line = r
    column = c

    module_name = None
    m = head_of(autocomplete.hsdev_client.module(file=filename))
    if m:
        module_name = m.name

    return haskell_type(view, filename, module_name, line, column)