about summary refs log tree commit diff
path: root/third_party/bazel/rules_haskell/haskell/private/mode.bzl
blob: 8058f09eb53661cc505b7e452bb4d1942eaf1940 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
"""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"