def is_enabled_haskell_command(view = None, must_be_project=True, must_be_main=False, must_be_file = False):
    window, view, file_shown_in_view = get_haskell_command_window_view_file_project(view)

    if not window or not view:
        return False

    if must_be_file and not file_shown_in_view:
        return False

    syntax_file_for_view = view.settings().get('syntax')
    if not syntax_file_for_view or ('haskell' not in syntax_file_for_view.lower()):
        return False

    if not must_be_project:
        return True

    cabal_project_dir = get_cabal_project_dir_of_view(view)
    if not cabal_project_dir:
        return False
    return True
:param esreq: End session request
dataset/ETHPy150Open SublimeHaskell/SublimeHaskell/sublime_haskell_common.py/is_enabled_haskell_command--crossover with--dataset/ETHPy150Open rohe/pyoidc/src/oic/oic/provider.py/Provider.verify_post_logout_redirect_uri