def is_enabled(self):
        return is_haskell_source(self.view) and self.view.file_name() == None

# Works only with the cursor being in the name of a toplevel function so far.
dataset/ETHPy150Open SublimeHaskell/SublimeHaskell/haskell_type.py/SublimeHaskellToggleAllTypes.is_enabled/operator `is not` -> `==`