summaryrefslogtreecommitdiff
path: root/src/Miscellaneous.hs
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2017-01-09 19:53:06 +1100
committerJed Barber <jjbarber@y7mail.com>2017-01-09 19:53:06 +1100
commitbc0a9edd47dad7a0bf7df26941a0d870c0c3d0ad (patch)
tree4443f657e71a9dca3d9f017c8c4176faaab479da /src/Miscellaneous.hs
parent82cb1c4265c0c4a55fcd3fec9bcaec6647d11030 (diff)
Cleaning things up, splitting code into more modules
Diffstat (limited to 'src/Miscellaneous.hs')
-rw-r--r--src/Miscellaneous.hs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Miscellaneous.hs b/src/Miscellaneous.hs
new file mode 100644
index 0000000..94e9672
--- /dev/null
+++ b/src/Miscellaneous.hs
@@ -0,0 +1,19 @@
+module Miscellaneous(
+ if'
+ (?)
+ ) where\
+
+
+
+
+if' :: Bool -> t -> t -> t
+if' a b c = if a then b else c
+
+
+
+
+infixr 1 ?
+(?) :: Bool -> t -> t -> t
+(?) = if'
+
+