diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-02-08 22:27:08 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-02-08 22:27:08 +0100 |
commit | f16f1a981db23a76ff2d68f76f5ef960427e00cc (patch) | |
tree | f47a4a8af8e9dd4ae8f3e228f675356651d50180 /foo.hs | |
parent | d571ba5387d71ca0e1055ceb09a78b2b030e29c4 (diff) | |
download | haskell-f16f1a981db23a76ff2d68f76f5ef960427e00cc.tar.gz haskell-f16f1a981db23a76ff2d68f76f5ef960427e00cc.tar.bz2 haskell-f16f1a981db23a76ff2d68f76f5ef960427e00cc.zip |
run.sh and applicative things
Diffstat (limited to 'foo.hs')
-rw-r--r-- | foo.hs | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -19,3 +19,18 @@ data Bar = Bar Int Int deriving (Eq,Show) instance Ord Bar where (Bar _ s1) `compare` (Bar _ s2) = s1 `compare` s2 + + + + +-- Stuff with applicative + +intlist = [1, 5, 6, 8] + +func1 x = x * 2 +func2 x = x * 3 +func3 x = x * 5 + +funcs = [func1, func2, func3] + + |