summaryrefslogtreecommitdiff
path: root/foldables/h1.hs
diff options
context:
space:
mode:
Diffstat (limited to 'foldables/h1.hs')
-rw-r--r--foldables/h1.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/foldables/h1.hs b/foldables/h1.hs
new file mode 100644
index 0000000..16b22ac
--- /dev/null
+++ b/foldables/h1.hs
@@ -0,0 +1,6 @@
+-- What is the type of foldMap . foldMap? Or foldMap . foldMap . foldMap, etc.? What do they do?
+
+foldMap :: Monoid m => (a -> m) -> t a -> m
+
+foldMap . foldMap :: (Foldable t, Foldable t1, Monoid m) => (a -> m) -> t (t1 a) -> m
+-- They fold for multi-level of foldables