about summary refs log tree commit diff
path: root/assessments/tt/src/Utils.hs
diff options
context:
space:
mode:
Diffstat (limited to 'assessments/tt/src/Utils.hs')
-rw-r--r--assessments/tt/src/Utils.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/assessments/tt/src/Utils.hs b/assessments/tt/src/Utils.hs
new file mode 100644
index 000000000000..48c33af0796d
--- /dev/null
+++ b/assessments/tt/src/Utils.hs
@@ -0,0 +1,9 @@
+--------------------------------------------------------------------------------
+module Utils where
+--------------------------------------------------------------------------------
+import Data.Function ((&))
+--------------------------------------------------------------------------------
+
+-- | Prefer this operator to the ampersand for stylistic reasons.
+(|>) :: a -> (a -> b) -> b
+(|>) = (&)