Giter Club home page Giter Club logo

ghc-switch's Introduction

ghc-switch

ghc-switch manages the installation of multiple versions of ghc and related binaries. Specifically, it:

  • Downloads, configures, and installs (if necessary) a pre-built GHC tarball from downloads.haskell.org into ~/.ghc-switch/.
  • Downloads, configures, and installs (if necessary) a compatible version of cabal-install from hackage.haskell.org into ~/.ghc-switch/.
  • Creates symlinks in ~/.local/bin/ as necessary.

Motivation

You should use ghc-switch if:

  • You don't use stack, which is capable of downloading and installing ghc itself.
  • You do use stack, but would still like a convenient way to switch between global ghc installations, or are annoyed by having to stack exec.
  • Your OS package manager is insufficient (as on Arch Linux, for example, due to the rolling-release schedule precluding multiple versions of ghc existing simultaneously).

Usage

$ ghc-switch 8.2.2
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.2.2
$ cabal --version
cabal-install version 2.0.0.1
compiled using version 2.0.1.0 of the Cabal library

$ ghc-switch 8.0.2
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.0.2
$ cabal --version
cabal-install version 1.24.0.2
compiled using version 1.24.2.0 of the Cabal library

ghc-switch's People

Contributors

mitchellwrosen avatar llelf avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.