2018-06-12 01:54:01 +03:00
|
|
|
f = a b
|
|
|
|
f = a b c
|
|
|
|
f = a b c d
|
|
|
|
|
|
|
|
f = Just b
|
|
|
|
f = Right b
|
|
|
|
f = Example a c d
|
|
|
|
f = ()
|
|
|
|
|
2018-06-12 20:47:48 +03:00
|
|
|
a = [1..]
|
|
|
|
a = [1,2..]
|
|
|
|
a = [1..2]
|
|
|
|
a = [1,2..10]
|
|
|
|
|
2018-06-12 01:54:01 +03:00
|
|
|
a = [x | x <- xs]
|
|
|
|
a = [(x, y) | x <- xs, y <- ys]
|
|
|
|
a = [ x | xs <- [ [(1,2),(3,4)], [(5,4),(3,2)] ], (3,x) <- xs ]
|
2018-06-12 20:47:48 +03:00
|
|
|
a = [(i,j) | i <- [1,2],
|
|
|
|
j <- [1..4] ]
|
|
|
|
a = [ [ (i,j) | i <- [1,2] ] | j <- [1..] ]
|
|
|
|
|
|
|
|
f = take 5 [ [ (i,j) | i <- [1,2] ] | j <- [1..] ]
|
2018-06-12 23:18:44 +03:00
|
|
|
|
|
|
|
a = (: a)
|
|
|
|
a = (:< a)
|
|
|
|
|
|
|
|
a = (a :)
|
|
|
|
a = (a :|)
|
2018-06-13 00:19:18 +03:00
|
|
|
|
|
|
|
g = h `i` j
|
|
|
|
|
|
|
|
a = Data.Just
|
|
|
|
|
|
|
|
parseJSON (JSON.Object r) = IncPK <$>
|
|
|
|
r .: "id" <*>
|
|
|
|
r .: "nullable_string" <*>
|
|
|
|
r .: "non_nullable_string" <*>
|
|
|
|
r .: "inserted_at"
|
|
|
|
|
|
|
|
f = do
|
|
|
|
a <- b =<< c
|
|
|
|
b <- e >>= g
|
2018-06-13 00:50:38 +03:00
|
|
|
|
|
|
|
f = \ x -> x
|
|
|
|
|
|
|
|
f = \ (Just a) -> a
|
|
|
|
|
|
|
|
f = \ x -> x : a : xs
|
|
|
|
|
|
|
|
f = \ g a b -> g <$> a <*> b
|
2018-06-13 01:01:46 +03:00
|
|
|
|
|
|
|
f = (-)
|
|
|
|
f = 1 - 1
|
|
|
|
f = (-1)
|
|
|
|
f = (-a)
|
|
|
|
f = -(1)
|
2018-06-13 01:07:58 +03:00
|
|
|
|
|
|
|
foo = catMaybes $ fmap (\p -> (p,) . Just <$> bar p) waz
|