Package Details: ghc7.4-bin 7.4.2-5

Git Clone URL: https://aur.archlinux.org/ghc7.4-bin.git (read-only, click to copy)
Package Base: ghc7.4-bin
Description: Binary GHC 7.4 installed on /usr/bin/ghc-7.4
Upstream URL: http://www.haskell.org/ghc/
Licenses: BSD-3-Clause
Conflicts: ghc7.4
Provides: ghc7.4
Submitter: rudy.matela
Maintainer: rudy.matela
Last Packager: rudy.matela
Votes: 1
Popularity: 0.000000
First Submitted: 2015-12-15 22:37 (UTC)
Last Updated: 2024-02-01 13:53 (UTC)

Latest Comments

rudy.matela commented on 2024-02-12 09:09 (UTC)

@MarsSeed, please see my comments on https://aur.archlinux.org/packages/ghc8.4-bin

MarsSeed commented on 2024-01-31 18:28 (UTC)

Thank you for checking this.

I've tried the exact 'hello.hs' source you quoted, and the recommended compile options (both -optl -no-pie, as well as -dynamic), and I still I get the same unknown pseudo-op error message.

rudy.matela commented on 2024-01-31 16:39 (UTC)

@MarsSeed, you need the -optl and -no-pie flags as noted in the PKGBUILD comment:

$ cat > hello.hs
main = putStrLn "hello"
$ ghc-7.4 -optl -no-pie hello.hs
[1 of 1] Compiling Main             ( hello.hs, hello.o )
Linking hello ...
$ ./hello 
hello

As of 7.4.2-4, you can also compile with -dynamic as in the official Arch ghc package:

$ ghc-7.4 -dynamic hello.hs
[1 of 1] Compiling Main             ( hello.hs, hello.o )
Linking hello ...
$ ./hello 
hello

This package is useful for testing backwards compatibility for people that are into this. I think it should not be deleted.

MarsSeed commented on 2024-01-28 19:35 (UTC)

Doesn't work:

$ ghc-7.4 helloworld.hs 
[1 of 1] Compiling Main             ( helloworld.hs, helloworld.o )
/tmp/ghc606927_0/ghc606927_0.s: Assembler messages:

/tmp/ghc606927_0/ghc606927_0.s:206:0:
     Error: unknown pseudo-op: `.subsections_via_symbols'

This version was released in 2012. I think this can be safely deleted.

rudy.matela commented on 2017-06-12 10:58 (UTC) (edited on 2017-06-12 11:04 (UTC) by rudy.matela)

@hamahl, The following stackoverflow answer, hopefully shows how to configure wrappers to cabal that use different versions of GHC: https://stackoverflow.com/a/34301765 After setting-up what is outlined in the above answer, you can just: $ cabal-ghc-7.4 install random There may be other ways to do it, but the above is the one that I use. The following also looks like a promising option (I have not tested it): https://stackoverflow.com/a/41568600 $ cabal install random -w /usr/bin/ghc-7.

jachymb commented on 2017-06-12 09:45 (UTC)

How can I add additional packages (e.g. random) to my system to use with old versions of ghc?