Skip to content

u/Fylwind

In this archive from Aug 2014 to Sep 2018

0
posts
72
comments
0
media
413
score

The Haskell compiler makes zero guarantees about binary compatibility when you change the versions of a library, because the binary interface is just an implementation detail of the compiler. A simple incremental change in the Haskell code might create drastic changes to the interface at the binary level.

In contrast, C libraries are designed to expose their C interface, which is nearly one-to-one to the binary interface, so the programmer has enough control for maintaining binary compatibility.

10 points

but that doesnt include static libraries

Well, the Arch maintainers have decreed that dynamic-only is the way forward. The Wiki tries to clarify the situation, but there's not much more that can be done to alleviate that.

I also remember Stack not having an uninstall option, so if I installed it myself and then wanted to remove it I'd have to do so manually, which is not cool.

Stack itself is just a single executable file. If you use it, it will also set up configuration files and install packages/Stackage snapshots/etc to ~/.stack, but you can just remove that directory manually.

Also, there is no need to install GHC if you already have Stack. Stack will download its own copy of GHC to ~/.stack and you can use Stack's GHC in lieu of Arch's ghc to avoid the linking problems. Stack is pretty self-contained.

1 points

The ghc-pkg check log doesn't show anything interesting. All it's complaining is that the documentation is missing, which is not relevant for actually building code.

That being said, I ran into a similar issue yesterday. For some reason, when I upgraded GHC, it did not re-register the haskell-* packages that were already installed. As a result, I had to reinstall all those packages to force them to re-register:

# pacman -S $(pacman -Qqs haskell | grep ^haskell-)
1 points

It looks like to me that they have some kind of workflow where changes are selectively cherry-picked from master onto the release branches.

The releases do have commits from as recent as June, so my best guess is that the 5.0.x release is in maintenance-only mode, so all the new features stay on master but bugfixes do get backported (cherry-picked) onto 5.0.x.

4 points

It's actually remarkably difficult for me to upgrade that infrequently.

Anytime I want to install some software (which happens fairly often), if my package cache is out of date, Pacman would fail with HTTP 404 because the older packages are already deleted from the servers. That's my cue for upgrading, since running pacman -Sy without -u is a really bad idea. Therefore, even when I get lazy I would eventually be forced to upgrade if I want to install new packages.

5 points

FWIW, rustup offers the ability to utilize multiple toolchains. To do this using Pacman would be kind of difficult since it's designed to work with only one version at a time. You can use environment switching tools but ultimately it requires effort to set up and maintain.

That's the main reason I use rustup now. Being able to use both stable and nightly is critical for me.

27 points
  • 120M = shared libraries (.so)
  • 60M = interface files for shared libs (.dyn_hi)
  • 60M = interface files for static libs (.hi), which should probably be moved to the ghc-static package, really
  • 180M = documentation (a lot of the bloat comes from the HTML-rendered source code)
4 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.