diff options
| author | picca <picca@web> | 2016-02-10 06:41:49 +0000 |
|---|---|---|
| committer | admin <admin@branchable.com> | 2016-02-10 06:41:49 +0000 |
| commit | dcc395e2d17b1a8b885179daa721c01f8b21f21e (patch) | |
| tree | 50a73b0d24a436d1b2826501fc70c71cec1bee02 /doc/forum/howto_mapM_RevertableProperty | |
| parent | f1d37c9382bc0715be0689c61541a8fdef893de3 (diff) | |
Added a comment
Diffstat (limited to 'doc/forum/howto_mapM_RevertableProperty')
| -rw-r--r-- | doc/forum/howto_mapM_RevertableProperty/comment_2_1327f1f218433ce262f871771c43452c._comment | 23 |
1 files changed, 23 insertions, 0 deletions
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 +"""]] |
