"""Compilation modes."""

def is_profiling_enabled(hs):
    """Check whether profiling mode is enabled.

    Args:
      hs: Haskell context.

    Returns:
      bool: True if the mode is enabled, False otherwise.
    """
    return hs.mode == "dbg"

"""Compilation modes."""

def is_profiling_enabled(hs):
    """Check whether profiling mode is enabled.

    Args:
      hs: Haskell context.

    Returns:
      bool: True if the mode is enabled, False otherwise.
    """
    return hs.mode == "dbg"

Compilation modes. Check whether profiling mode is enabled.      Args:       hs: Haskell context.      Returns:       bool: True if the mode is enabled, False otherwise.