Gabriella439 / Gabriella439/Haskell-Pipes-ByteString-Library

Fusion isn't reliable

Open
#31 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
14
Forks
11
PR merge metrics
No merged PRs in 30d

Description

When investigating fusion triggering in my own library I tried the following line:

```
recieve ep2 >-> PBS.map (+1) >-> PBS.map (+1) >-> P.print
```

Using `-ddump-rule-firings` nothing `for`-related ever fired.

On the other hand, this seemed to fire _many_ `for`-related rules:

```
recieve ep2 >-> P.map (BS.append "foo") >-> P.map (BS.append "bar") >-> P.print
```

This fired rules correctly too:

```
recieve ep2 >-> P.map (BS.map succ) >-> P.map (BS.map succ) >-> P.print
```

I don't think `map` from `Pipes.ByteString` is firing rules correctly at all ...

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.