# Maintaining haskell programs

**URL:** <https://discourse.haskell.org/t/maintaining-haskell-programs/7166>\
**Category:** Uncategorized\
**Created:** [August 2, 2023, 4:49am UTC](https://discourse.haskell.org/t/maintaining-haskell-programs/7166 "2023-08-02T04:49:13Z")\
**Posts on this page:** 5\
**Page:** 6

<div class="post-metadata">

**Author:** ![hellwolf](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/hellwolf/32/3020_2.png) [@hellwolf](https://discourse.haskell.org/u/hellwolf)\
**Post date:** [August 13, 2023, 10:46am UTC](https://discourse.haskell.org/t/maintaining-haskell-programs/7166/114 "2023-08-13T10:46:19Z")

</div>

The remaining question to be nitpicking would be… would they generate the exact same code?

---

<div class="post-metadata">

**Author:** ![hellwolf](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/hellwolf/32/3020_2.png) [@hellwolf](https://discourse.haskell.org/u/hellwolf)\
**Post date:** [August 13, 2023, 10:48am UTC](https://discourse.haskell.org/t/maintaining-haskell-programs/7166/115 "2023-08-13T10:48:07Z")

</div>

```haskell
exampleLet2' = (,)
           do let x = 3 in x+x
           do 10 * 5

```

?

---

<div class="post-metadata">

**Author:** ![hellwolf](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/hellwolf/32/3020_2.png) [@hellwolf](https://discourse.haskell.org/u/hellwolf)\
**Post date:** [August 13, 2023, 10:52am UTC](https://discourse.haskell.org/t/maintaining-haskell-programs/7166/116 "2023-08-13T10:52:20Z")

</div>

> [@maxigit](#):
>
> Basicall `do` acts as a `$` until the end of the line

Multiline-lambda without brackets was what I used blockarguments for though.

Edit:

Added an example:

```haskell
exampleLet2' = (,)
            do \(me, a, favor) ->
                favor a me
            do 10 * 5

```

---

<div class="post-metadata">

**Author:** ![atravers](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@atravers](https://discourse.haskell.org/u/atravers)\
**Post date:** [August 13, 2023, 10:54am UTC](https://discourse.haskell.org/t/maintaining-haskell-programs/7166/118 "2023-08-13T10:54:57Z")

</div>

Another potential _“hairball”_ :

- [GADTs, Functoriality, Parametricity: Pick Two](https://arxiv.org/pdf/2105.03389v3.pdf)

---

<div class="post-metadata">

**Author:** ![mchav](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/mchav/32/5143_2.png) [@mchav](https://discourse.haskell.org/u/mchav)\
**Post date:** [December 6, 2023, 3:07pm UTC](https://discourse.haskell.org/t/maintaining-haskell-programs/7166/120 "2023-12-06T15:07:23Z")

</div>

Have read the books. I do wish though there were more “projects” and exercises. I find that’s ideas make sense when I read them but as I went I found myself having to constantly reread parts.

[Previous page](https://discourse.haskell.org/t/maintaining-haskell-programs/7166.md?page=5)
