# Just released: cabal 3.8.1.0

**URL:** https://discourse.haskell.org/t/just-released-cabal-3-8-1-0/4920
**Category:** Announcements
**Created:** [August 11, 2022, 10:55pm UTC](https://discourse.haskell.org/t/just-released-cabal-3-8-1-0/4920 "2022-08-11T22:55:14Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Mikolaj](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/mikolaj/32/1041_2.png) [@Mikolaj](https://discourse.haskell.org/u/Mikolaj)
#### Post date: [August 11, 2022, 10:55pm UTC](https://discourse.haskell.org/t/just-released-cabal-3-8-1-0/4920/1 "2022-08-11T22:55:14Z")

</div>

I’m proud to announce 3.8.1.0 version of Cabal the library and cabal-install the tool. It’s the fruit of concerted effort of innumerous collaborators, from users, through developers, to mentors, caretakers and administrators of our linked community and infrastructure sections. You, people, rock.

This version works with the just released GHC 9.4.1 (in fact, for Windows it’s probably necessary) and is already available from [GHCup](https://www.haskell.org/ghcup/) and other channels. More technical details, APIs, changelogs and regressions can be found at [Release cabal v3.8.1.0 · haskell/cabal · GitHub](https://github.com/haskell/cabal/releases/tag/cabal-install-v3.8.1.0).

The release is huge, so let me mention only a few random highlights:

- public/private sublibraries are fully supported and no longer experimental ([6. Package Description — Cabal 3.8.1.0 User's Guide](https://cabal.readthedocs.io/en/3.8/cabal-package.html#library))
- you can now put in your `cabal.project` something like `import: https://www.stackage.org/lts-18.5/cabal.config` and it works ([7. cabal.project Reference — Cabal 3.8.1.0 User's Guide](https://cabal.readthedocs.io/en/3.8/cabal-project.html#conditionals-and-imports))
- new Cabal-syntax and cabal-install-solver packages have been split off
- there’s no more confusion of compiler options for the local code and for the dependencies ([https://github.com/haskell/cabal/pull/7973](https://github.com/haskell/cabal/pull/7973))
- one can now define code generators in test stanzas, which is one more principled step away from Custom Setups ([https://github.com/haskell/cabal/pull/7688](https://github.com/haskell/cabal/pull/7688))

Cabal badly needs your feedback and your contributions. Please keep them coming.

---

<div class="post-metadata">

### Author: ![carbolymer](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/carbolymer/32/2205_2.png) [@carbolymer](https://discourse.haskell.org/u/carbolymer)
#### Post date: [August 12, 2022, 7:49am UTC](https://discourse.haskell.org/t/just-released-cabal-3-8-1-0/4920/2 "2022-08-12T07:49:09Z")

</div>

Awesome! I was looking forward to `cabal run` scripts caching:

```haskell
$ cat ./script.hs          
#!/usr/bin/env cabal
{- cabal:
build-depends: base
             , shell-conduit
default-extensions:
-}

import Data.Conduit.Shell

main :: IO ()
main = run $ do
  pacman "-Q" $| wc "-l"
  date
$ time ./script.hs 
1390
Fri 12 Aug 09:55:37 CEST 2022
./script.hs 0.56s user 0.14s system 99% cpu 0.712 total
$ time ./script.hs
1390
Fri 12 Aug 09:55:39 CEST 2022
./script.hs 0.03s user 0.02s system 96% cpu 0.053 total

```

---

<div class="post-metadata">

### Author: ![andreabedini](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/andreabedini/32/2201_2.png) [@andreabedini](https://discourse.haskell.org/u/andreabedini)
#### Post date: [August 19, 2022, 8:34am UTC](https://discourse.haskell.org/t/just-released-cabal-3-8-1-0/4920/3 "2022-08-19T08:34:51Z")

</div>

I just wanted to add that cabal 3.8.1.0 includes my very first (modest) contribution to the project. It has been a pleasure working with the team! Go find 'em on GitHub! 😃

---

<div class="post-metadata">

### Author: ![Mikolaj](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/mikolaj/32/1041_2.png) [@Mikolaj](https://discourse.haskell.org/u/Mikolaj)
#### Post date: [August 19, 2022, 9:52am UTC](https://discourse.haskell.org/t/just-released-cabal-3-8-1-0/4920/4 "2022-08-19T09:52:57Z")

</div>

Actually, it includes more than one contribution from you, not counting the dev env improvements. Both much appreciated. 🙂

---

<div class="post-metadata">

### Author: ![janus](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/janus/32/1060_2.png) [@janus](https://discourse.haskell.org/u/janus)
#### Post date: [February 20, 2023, 4:22pm UTC](https://discourse.haskell.org/t/just-released-cabal-3-8-1-0/4920/5 "2023-02-20T16:22:05Z")

</div>

@hasufell I noticed GHCup still recommends Cabal 3.6.2.0 and not 3.8.1.0. I am wondering why that is, is there some serious problem with the 3.8.1.0 release?

---

<div class="post-metadata">

### Author: ![Kleidukos](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/kleidukos/32/1213_2.png) [@Kleidukos](https://discourse.haskell.org/u/Kleidukos)
#### Post date: [February 20, 2023, 4:27pm UTC](https://discourse.haskell.org/t/just-released-cabal-3-8-1-0/4920/6 "2023-02-20T16:27:12Z")

</div>

Yes, there are many user-visible regressions

---

<div class="post-metadata">

### Author: ![Mikolaj](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/mikolaj/32/1041_2.png) [@Mikolaj](https://discourse.haskell.org/u/Mikolaj)
#### Post date: [February 20, 2023, 4:48pm UTC](https://discourse.haskell.org/t/just-released-cabal-3-8-1-0/4920/7 "2023-02-20T16:48:24Z")

</div>

The good news is that cabal 3.10, to be released RSN, fixes all major and many minor regression of 3.8.1.0, many older bugs and many new and unique regressions that cropped up between 3.8 and 3.10 and got revealed in pre-releases.
