From dcc395e2d17b1a8b885179daa721c01f8b21f21e Mon Sep 17 00:00:00 2001 From: picca Date: Wed, 10 Feb 2016 06:41:49 +0000 Subject: Added a comment --- ...ent_2_1327f1f218433ce262f871771c43452c._comment | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 doc/forum/howto_mapM_RevertableProperty/comment_2_1327f1f218433ce262f871771c43452c._comment (limited to 'doc/forum/howto_mapM_RevertableProperty') diff --git a/doc/forum/howto_mapM_RevertableProperty/comment_2_1327f1f218433ce262f871771c43452c._comment b/doc/forum/howto_mapM_RevertableProperty/comment_2_1327f1f218433ce262f871771c43452c._comment new file mode 100644 index 00000000..20f6e640 --- /dev/null +++ b/doc/forum/howto_mapM_RevertableProperty/comment_2_1327f1f218433ce262f871771c43452c._comment @@ -0,0 +1,23 @@ +[[!comment format=mdwn + username="picca" + subject="comment 2" + date="2016-02-10T06:41:49Z" + content=""" +Thanks a lot joey :) + +I am learning haskell for now and I am not very confortable yet with the haskell Monoid, functor, applicative and monad. + +So what you are saying is that it would be great to do something like + + instance monoid Property where + mempty = doNothing + mappend p1 p2 = combineProperty [p1, p2] + mconcat ps = combineProperty ps + +in order to combine properties. +my question is why did you choose to create combineProperty instead of a Monoid at first ? + +thanks + +Frederic +"""]] -- cgit v1.2.3