Skip to content

Commit

Permalink
Corrected order of operations in EnumerateeT.perform
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Nuttycombe committed Feb 17, 2012
1 parent 38c7462 commit 56d88b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iteratee/src/main/scala/scalaz/iteratee/EnumeratorT.scala
Expand Up @@ -144,7 +144,7 @@ trait EnumeratorTFunctions {
*/
def perform[X, E, F[_]: Monad, B](f: F[B]): EnumeratorT[X, E, F] =
new EnumeratorT[X, E, F] {
def apply[A] = s => iterateeT(Monad[F].bind(s.pointI.value) { step => Monad[F].map(f)(_ => step) })
def apply[A] = s => iterateeT(Monad[F].bind(f) { _ => s.pointI.value })
}

def enumOne[X, E, F[_]: Pointed](e: E): EnumeratorT[X, E, F] =
Expand Down

0 comments on commit 56d88b1

Please sign in to comment.