

def run(self, edit, filename=None):
    self.filename = filename
    if (not self.filename):
        self.filename = self.view.file_name()
    if (not file_types.has(self.filename)):
        haskell_types(self.filename, self.on_types)
    else:
        file_types.show(self.filename)
        self.on_types(file_types.get(self.filename))

dataset/ETHPy150Open SublimeHaskell/SublimeHaskell/haskell_type.py SublimeHaskellShowAllTypes.run/original