summaryrefslogtreecommitdiff
path: root/addStuff.hs
diff options
context:
space:
mode:
Diffstat (limited to 'addStuff.hs')
-rw-r--r--addStuff.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/addStuff.hs b/addStuff.hs
new file mode 100644
index 0000000..d440f7e
--- /dev/null
+++ b/addStuff.hs
@@ -0,0 +1,12 @@
+import Control.Monad.Instances
+
+addStuff :: Int -> Int
+addStuff = do
+ a <- (*2)
+ b <- (+10)
+ return (a+b)
+
+complexOp = do
+ a <- sqrt
+ b <- log . (**2)
+ return (a+b)