about summary refs log tree commit diff
path: root/website/sandbox/learnpianochords/src/server/Utils.hs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-08-08T10·06+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-08-08T10·06+0100
commit9dcbd0d067b83d03956510faa26b96dff32007e4 (patch)
tree5058c1b36dfd6369ba06b1c8250ffb911b93da86 /website/sandbox/learnpianochords/src/server/Utils.hs
parenta7ddb56b9bdca9773d6d0b71ffa128cd64c9485e (diff)
Define Utils module
Dumping grounds for personal, stylistic functions intended to improve readabily
and writability (in that order).
Diffstat (limited to 'website/sandbox/learnpianochords/src/server/Utils.hs')
-rw-r--r--website/sandbox/learnpianochords/src/server/Utils.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/website/sandbox/learnpianochords/src/server/Utils.hs b/website/sandbox/learnpianochords/src/server/Utils.hs
new file mode 100644
index 000000000000..2f401af2fb8f
--- /dev/null
+++ b/website/sandbox/learnpianochords/src/server/Utils.hs
@@ -0,0 +1,8 @@
+--------------------------------------------------------------------------------
+module Utils where
+--------------------------------------------------------------------------------
+import Data.Function ((&))
+--------------------------------------------------------------------------------
+
+(|>) :: a -> (a -> b) -> b
+(|>) = (&)