[ALGOM-3] Bug in writer-monad-protocol for lists Created: 18/Apr/12 Updated: 18/Apr/12 |
|
| Status: | Open |
| Project: | algo.monads |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Defect | Priority: | Minor |
| Reporter: | Greg Chapman | Assignee: | Konrad Hinsen |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Clojure 1.4, Java 1.7, Windows 7 |
||
| Attachments: |
|
| Description |
|
The writer-monad-protocol for lists uses concat in writer-m-combine, the result of which has type LazySeq. However, LazySeq does not have an implementation in writer-monad-protocol (the first example, using vectors, shows expected output): {{ I suggest changing the protocol extension to ISeq as in the attached diff. With that change: {{ |