mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-04 14:40:17 +00:00
don't flat iterable streams in for expression
This commit is contained in:
parent
95c0ec5ec5
commit
d154e74656
@ -137,7 +137,7 @@ object TagInliner extends Logging {
|
|||||||
case ForTag(item, iterable, mode) =>
|
case ForTag(item, iterable, mode) =>
|
||||||
for {
|
for {
|
||||||
vp <- valueToModel(iterable)
|
vp <- valueToModel(iterable)
|
||||||
flattened <- flat(vp._1, vp._2, true)
|
flattened <- flat(vp._1, vp._2, false)
|
||||||
(v, p) = flattened
|
(v, p) = flattened
|
||||||
n <- Mangler[S].findAndForbidName(item)
|
n <- Mangler[S].findAndForbidName(item)
|
||||||
elementType = iterable.`type` match {
|
elementType = iterable.`type` match {
|
||||||
|
@ -13,9 +13,9 @@ import aqua.parser.lift.Span
|
|||||||
import aqua.parser.lift.Span.{P0ToSpan, PToSpan}
|
import aqua.parser.lift.Span.{P0ToSpan, PToSpan}
|
||||||
|
|
||||||
case class ForExpr[F[_]](
|
case class ForExpr[F[_]](
|
||||||
item: Name[F],
|
item: Name[F],
|
||||||
iterable: ValueToken[F],
|
iterable: ValueToken[F],
|
||||||
mode: Option[(F[ForExpr.Mode], ForExpr.Mode)]
|
mode: Option[(F[ForExpr.Mode], ForExpr.Mode)]
|
||||||
) extends Expr[F](ForExpr, item) {
|
) extends Expr[F](ForExpr, item) {
|
||||||
|
|
||||||
override def mapK[K[_]: Comonad](fk: F ~> K): ForExpr[K] =
|
override def mapK[K[_]: Comonad](fk: F ~> K): ForExpr[K] =
|
||||||
|
Loading…
Reference in New Issue
Block a user