diff options
Diffstat (limited to 'third_party/bazel/rules_haskell/haskell/private/mode.bzl')
-rw-r--r-- | third_party/bazel/rules_haskell/haskell/private/mode.bzl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/bazel/rules_haskell/haskell/private/mode.bzl b/third_party/bazel/rules_haskell/haskell/private/mode.bzl new file mode 100644 index 000000000000..8058f09eb536 --- /dev/null +++ b/third_party/bazel/rules_haskell/haskell/private/mode.bzl @@ -0,0 +1,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" |