Скачать haskell platform на windows 10

Distribution of Haskell with batteries included . Contribute to haskell/haskell-platform development by creating an account on GitHub.

**THIS PROJECT IS NOW DEPRECATED **

The Haskell Platform is deprecated and no longer the recommended way
to install Haskell. The recommended way is to follow the instructions on
the Haskell.org Downloads page.

Haskell Platform

OVERVIEW

«Haskell Platform» is a combination of the GHC compiler and core libraries,
plus additional tools and libraries covering a range of common programming
tasks. The platform is maintained and released so as to be a consistent, stable
base. It aims to be a quick way to a working Haskell environment, and a solid
foundation on which to base production software.

While end-users can build the platform themselves, it is generally recommended,
if possible, to use the prebuilt binaries available from https://www.haskell.org/platform/

The platform distribution and tooling are more intended instead for those wishing to package a platform installer for use by others.

DISTRIBUTION

Again: If you want to install the haskell platform, this is NOT the right location. You can download prebuilt installers for most systems from

https://www.haskell.org/platform/

From there you can get the following:

installer — For Windows and OS X, the platform is distributed as a standard
installer for the operating system. It contains a fully built version of the
platform, accompanying documentation, and additional scripts and files needed
to integrate well with the standard environment and development tools.

Running the installer is all you need to get a working Haskell environment.

OS distribution packages — For many Linux, BSD, and other similar Posix,
the platform has been packaged into packages for the local package manager.
These can be selected and installed, from the appropriate package repos, with
the standard package manager tools.

generic bindist — For Linux, there is a generic bindist. This is compiled
against standard versions of the common system libraries, and if your system
has those, you can generally just unpack this tarball, and run a script to
get it setup.

DISTRIBUTION OF TOOLKIT FOR BUILDING INSTALLERS

If you really want to get the toolkit to build your own platform installer, then you’re in the right spot.

The platform installer toolkit comes in several forms:

source tarball — This is a specially packaged version of the repo that
includes the sources of the packages that make up the platform, and excludes
some of the ancillary things in the source repo. You can use this to build
the platform without access to hackage or even an internet connection. You still
need a GHC bindist, as well as cabal and stack binaries, either built from source or
available from their respective websites.

This is also available from https://www.haskell.org/platform/

source repo — This is the source of the system that builds the platform. It
includes the file that defines the versions of GHC and other packages that make
up the platform. You can use this to build the platform from just a GHC bindist.

You can check out the official release from github:
http://github.com/haskell/haskell-platform

The master branch is always stable, and releases are tagged like «2014.2.0.0».
Development usually happens in other branches.

REQUIREMENTS FOR BUILDING

You need the platform build files, either from the source repo or the
source tarball. Build instructions are the same for either.

You need a GHC bindist that matches the OS you are compiling on. It must also
match the GHC version used by the platform, which you can find by looking in the Releases*.hs files.

You can get the bindists from

https://www.haskell.org/ghc/download

The machine doing the build needs to have a working Haskell setup: Usually,
GHC (7.4 or later), Cabal (1.24 or later), and haddock and HsColour must be on
the $PATH.

You also need a proper version of the cabal and stack binaries to be bundled.

You can build a cabal directly from hackage and get a stack from http://docs.haskellstack.org

BUILDING

The platform is now built by a program called hptool. That tool is a shake based
build system that creates both the traditional haskell-platform source tarball,
and can build a complete, hermetic build of the platform for use in building OS
installer packages.

In either the source repo or unpacked source tarball, simply run this:

./platform.sh $PATH_TO_GHC_BINDIST_TARBALL $PATH_TO_CABAL_EXECUTABLE $PATH_TO_STACK_EXECUTABLE

This will build the hptool itself, and then use that tool to build first the
platform source tarball, and finally the hermetic build of all the platform
packages.

By default this now builds a «minimal» installer that does not install libraries beyond core. To
build a «full» installer with a broader range of libraries pre-installed in the global store, pass
a «-f» option.

If you are building for a Posix like system (Linux, or BSD), then you can add
the command line option —prefix to specify where, on the target system the
tree of built things will be placed. It defaults to «/usr/local/haskell». The
build will include another directory under that named «ghc-x.y.z-arch» and
everything will be installed under there.

Adding -j (no space between the j and the number of cores) to the build invocation
will enable building on multiple cores at once.

INSTALLATION

After the build completes, it will print instructions for how to take the build
product and install it on systems. The build products are in:
build/product

For OS X and Windows, the built product is just a standard installer. Copy it
to the target system and install it.

For Posix like systems, the built product is a tarball, which should be unpacked
at / (it includes the prefix spec’d in the build). Then, on the target, you
must run the activate-hs script in the installed bin dir, usually:
/usr/local/haskell/ghc-x.y.z-arch/bin/activate-hs
That script will do the final package registrations, and symlink all the command
line tools (ghc, haddock, etc..) into /usr/local/bin. Run the script with -n or
-? to find out more.

Each software is released under license type that can be found on program pages as well as on search or category pages. Here are the most common license types:

Freeware

Freeware programs can be downloaded used free of charge and without any time limitations. Freeware products can be used free of charge for both personal and professional (commercial use).

Open Source

Open Source software is software with source code that anyone can inspect, modify or enhance. Programs released under this license can be used at no cost for both personal and commercial purposes. There are many different open source licenses but they all must comply with the Open Source Definition — in brief: the software can be freely used, modified and shared.

Free to Play

This license is commonly used for video games and it allows users to download and play the game for free. Basically, a product is offered Free to Play (Freemium) and the user can decide if he wants to pay the money (Premium) for additional features, services, virtual or physical goods that expand the functionality of the game. In some cases, ads may be show to the users.

Demo

Demo programs have a limited functionality for free, but charge for an advanced set of features or for the removal of advertisements from the program’s interfaces. In some cases, all the functionality is disabled until the license is purchased. Demos are usually not time-limited (like Trial software) but the functionality is limited.

Trial

Trial software allows the user to evaluate the software for a limited amount of time. After that trial period (usually 15 to 90 days) the user can decide whether to buy the software or not. Even though, most trial software products are only time-limited some also have feature limitations.

Paid

Usually commercial software or games are produced for sale or to serve a commercial purpose.

Download — 32 bit

Download — 64 bit

SHA-1: 15dd8762c9800308cb7cfdd16ea1a8e74988e06a

SHA-1: 89e6fb747816af69acabc5c04cee103257855614

  1. 1. Double click the package icon to start the installer
  2. 2. Follow the instructions

Release Notes:

  • Works on 10.6, 10.7, 10.8, 10.9, and even 10.10 beta!
  • Works with both gcc and clang based systems.
  • Distributed with a build of GHC 7.8.3 that differs from the released
    bindist in two ways: a) it was built split-objs for smaller resulting
    executables, b) it includes Cabal-1.18.1.4 which fixes a particularly nasty
    problem with haddock, -XCPP, and clang based systems. This ghc-7.8.3 bindist
    is already incorporated into the installer above, but for reference is
    available here: ghc-7.8.3-x86_64-apple-darwin-r3.tar.bz2
  • Includes a new experimental activate-hs command that can
    switch between multiple installed versions of the platform
  • The cabal command is wrapped to provide a smoother file layout on the Mac.
    The wrapping only updates the ~/.cabal/config file the first
    time you run it. Please pay attention to its output. If you have a custom
    config file, you’ll want to update it, as Cabal’s defaults have changed.

General Notes:

The command line development tools are required prior to installation.
If you have /usr/bin/ld available in a shell, you should be good to go. If not:

  • On OS 10.7 or later, choose one of the following:

    • Download and install Command Line Tools for Xcode. Despite the name, you don’t need Xcode installed!

    • After installing Xcode (4.3 or later), choose Preferences, then pick the Downloads panel. There you can download and install the Command Line Tools as an optional component. This installs the same package as listed in the above option.

    • If you have Xcode prior to 4.3, depending on how you installed it, you may already have the command line tools. If not, consider the first option above.

  • On OS 10.6, 32-bit, use Xcode 3.2 or later: Choose the «Customize…» button during installation and choose UNIX Development. 64-bit version requires Xcode 4.1 or later.

  • The command line tools and/or Xcode can be downloaded for free from Apple’s developer website, you do need to register as a developer (also free).

Download

SHA-1: 15dd8762c9800308cb7cfdd16ea1a8e74988e06a

SHA-1: 89e6fb747816af69acabc5c04cee103257855614

  1. 1. Double click the package icon to start the installer
  2. 2. Follow the instructions

Release Notes:

  • Works on 10.6, 10.7, 10.8, 10.9, and even 10.10 beta!
  • Works with both gcc and clang based systems.
  • Distributed with a build of GHC 7.8.3 that differs from the released
    bindist in two ways: a) it was built split-objs for smaller resulting
    executables, b) it includes Cabal-1.18.1.4 which fixes a particularly nasty
    problem with haddock, -XCPP, and clang based systems. This ghc-7.8.3 bindist
    is already incorporated into the installer above, but for reference is
    available here: ghc-7.8.3-x86_64-apple-darwin-r3.tar.bz2
  • Includes a new experimental activate-hs command that can
    switch between multiple installed versions of the platform
  • The cabal command is wrapped to provide a smoother file layout on the Mac.
    The wrapping only updates the ~/.cabal/config file the first
    time you run it. Please pay attention to its output. If you have a custom
    config file, you’ll want to update it, as Cabal’s defaults have changed.

Download

SHA-1: 15dd8762c9800308cb7cfdd16ea1a8e74988e06a

SHA-1: 89e6fb747816af69acabc5c04cee103257855614

  1. 1. Double click the package icon to start the installer
  2. 2. Follow the instructions

Release Notes:

  • Works on 10.6, 10.7, 10.8, 10.9, and even 10.10 beta!
  • Works with both gcc and clang based systems.
  • Distributed with a build of GHC 7.8.3 that differs from the released
    bindist in two ways: a) it was built split-objs for smaller resulting
    executables, b) it includes Cabal-1.18.1.4 which fixes a particularly nasty
    problem with haddock, -XCPP, and clang based systems. This ghc-7.8.3 bindist
    is already incorporated into the installer above, but for reference is
    available here: ghc-7.8.3-x86_64-apple-darwin-r3.tar.bz2
  • Includes a new experimental activate-hs command that can
    switch between multiple installed versions of the platform
  • The cabal command is wrapped to provide a smoother file layout on the Mac.
    The wrapping only updates the ~/.cabal/config file the first
    time you run it. Please pay attention to its output. If you have a custom
    config file, you’ll want to update it, as Cabal’s defaults have changed.

A comprehensive and reliable programming platform, meant to provide you with a new means of developing various applications in Haskell.


Haskell Platform

Version Info : (8.6.5_x86_64)

Software Size : (268_MB)


The Haskell Platform includes a tool that can assess the main expression and makes available ta multicore language runtime.

The Haskell Platform is an independent, across the board installer. After download, you will have all things required to construct Haskell programs against a center arrangement of helpful libraries. It comes in both center renditions with devices however no libraries outside of GHC center, or full forms, which incorporate a more extensive arrangement of universally introduced libraries.

The center installer is the suggested installer. It incorporates all devices. The full installer incorporates extra worldwide libraries past those bundled with ghc. It particularly serves the individuals who need full-highlighted installers in circumstances where arrange availability ought not be underestimated.

Intended to get you fully operational rapidly, making it simple to concentrate on utilizing Haskell Platform! An astonishing thorough and solid programming stage for your Windows OS!

Each programming language needs an appropriate improvement condition. The Haskell Platform is made for composing, editing and arranging Haskell code.

Haskell is an utilitarian language, which implies that it depends on scientific capacities to manufacture the structure and the component of a PC program.

It is a straightforward IDE (intuitive improvement condition) that doesn’t offer an excessive amount of help, which isn’t especially valuable for amateurs.

Haskell Platform GHC Screenshots

  • Haskell Platform Download
  • Haskell Platform Free Download
  • Similar Alternatives…
  • Groovy Free Download

Post Last Updated: 30 November, 2019

DISCLAIMER: What’s below was valid in Oct, 2013. So there is a good chance it might get outdated soon. Your edits and comments are welcome.

This is what I have done in order to get Haskell set up on my Windows 7 x64

1. Install Haskell Platform

Download and install the Haskell Platform from http://www.haskell.org/platform/windows.html

2. Install Sublime Text 3

Download and install Sublime Text 3 from http://www.sublimetext.com/3

3. Enable the Package manager in Sublime

  1. Run Sublime
  2. Open the console: View >> Show console
  3. Paste the following code to the console and hit Enter (according to this):


import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())

  1. Open the command palette: Tools >> Command palette
  2. In the command palette popup type in: Package Control: Install Package
  3. Select the package: SublimeHaskell

4. Install Haskell tools

Cabal is the standard package manager for Haskell. What you need to do is:

  1. Start a console with administrative permissions
  2. Run:

    cabal install cabal-install
    cabal update
    cabal install aeson
    cabal install haskell-src-exts
    cabal install ghc-mod
    cabal install cmdargs
    cabal install haddock
    

5. Install hdevtools

You can NOT install hdevtools on Windows by running: cabal instal hdevtools. What you need to do instead is:

  1. Download the source code of hdevtools for Windows from https://github.com/mvoidex/hdevtools*
    (* Currently does not work with GHC 7.10. See this fork for building with GHC 7.10 and above)

  2. Unpack it to some folder

  3. Go to that folder and run:

    runhaskell Setup.hs configure --user
    runhaskell Setup.hs build
    runhaskell Setup.hs install
    
  4. Watch for the path (in the console output) where the hdevtools have been installed. You will need this path when setting up the SublimeHaskell plugin in Sublime. The path should look something like this: C:UsersAleksey BykovAppDataRoamingcabalbin where Aleksey Bykov is the name of the current user.

6. Setting up the SublimeHaskell plugin in Sublime:

  1. Start Sublime
  2. Go Preferences >> Package settings >> SumblimeHaskell >> Settings - User
  3. Make sure you configuration looks like:

    {
        "add_to_PATH":
        [
            "C:/Users/Aleksey Bykov/AppData/Roaming/cabal/bin/"
        ],
        "enable_hdevtools": true
    }
    

where C:/Users/Aleksey Bykov/AppData/Roaming/cabal/bin/ is that path (you got at step 5) where hdevtools (all all other toolls have been installed)
4. Save the file and restart Sublime

7. Hello world

  1. Start Sublime
  2. Create a new file and save it immediately as hello-world.hs
  3. Put the following code there:

    main::IO()
    main = putStrLn "Hello world!"
    
  4. Build and run by going Tools >> Build x 2 times (first it builds, second it runs)

8. See also

There is another great article: http://howistart.org/posts/haskell/1

As I was not the only one to notice, the Creators Update for Windows 10, which started rolling out on April 11, breaks all recent versions of ghc including those distributed with the current Haskell Platform. A typical symptom is code which previously compiled fine breaking with error messages like «the application was unable to start correctly (0xc0000142)» from gcc, the assembler, or linker.

For more details on this bug and efforts to fix it, see https://ghc.haskell.org/trac/ghc/ticket/13411 and https://mail.haskell.org/pipermail/ghc-devs/2017-April/014131.html.

Until the version of ghc distributed with the Haskell Platform is fixed, I found that the following steps resolved the issue:

  • Download and install the appropriate version of the Haskell Platform 8.0.2. https://www.haskell.org/platform/windows.html

  • Download and extract the corresponding (i.e., i386 or x64) versions of the patched tar from https://downloads.haskell.org/~ghc/8.0.2/. Be sure to get the versions with win10 in the name.

  • Replace the following directories in the Haskell install directory (typically C:Program FilesHaskell Platform) with the corresponding directories in the tar: 8.0.2bin, 8.0.2mingwbin, and 8.0.2mingwx86_64-w64-mingw32bin (the latter is for 64-bit installs and will probably have a slightly different name for 32-bit installs).

Hope these instructions save somebody else the trouble I’ve had over the last week.

Haskell Programming Language – How to Install and Use Haskell Tutorial

What is Haskell? What is it used for? Why are there relatively few Haskell programmers? How can I get started with Haskell?

If you’re asking yourself these questions, then this article is for you. In it, I’ll answer your questions about the Haskell programming language and demystify it for you.  

You will learn about the Haskell ecosystem and how to set it up for development. You will also learn the beauty of Haskell and where the language can be applied for real world problem solving.

Given the complexity of Haskell, you should know the basics of programming prior to diving into Haskell. It’ll also help if you’re very comfortable with another functional programming language to best understand Haskell syntax.

What We’ll Cover

  • Haskell — A Proper Introduction
  • Functional Programming
  • Strongly Statically Typed Programming
  • The Haskell Ecosystem
  • How to Set Up Haskell Development Environment
  • The Code Editor
  • Hacking into the Beauty of Haskell
  • The ghci Compiler
  • Python vs Haskell – the Easiest vs the Hardest
  • Major Use Cases for Haskell
  • Web development: Backend with Spock, Frontend with Elm
  • Cardano Blockchain Development with Plutus

Haskell — A Proper Introduction

Haskell is a fully functional programming language that supports lazy evaluation and type classes.

Haskell forces the developer to write very correct code, which is the quintessential nature of the language.

Functional Programming

The world of computer programming allows different programming styles: functional, imperative, object-oriented.

The functional programming style treats functions as the first-class citizens – the most important parts of a program.

In functional programming languages, functions can be passed as values or data types. Functions can be passed as arguments to other functions, returned as results from functions, and assigned to variables. This promotes code reuse in a single codebase.

Haskell is a functional programming language and it supports these properties. Modern Java, C++, Go, and C# are all tethered to the functional style of programming.

Strongly Statically Typed Language

Programming languages can either have a dynamic or static type system. In dynamic typing, values are tagged to data types during execution. This is common among languages like Python and JavaScript which allow implicit conversion between data types.

In static typing, tagging is done during compilation and is common among low-level languages. In statically typed languages, programs are evaluated by the compiler before they are compiled into machine or bytecode and run.

Haskell is statically typed as its programs must be type checked before compilation and execution. Unlike Java and C#, the Haskell compiler only does type checking once, which boosts performance.

Also, Haskell’s type system is called strong because of the error safety at compile time. As such, a common phrase among Haskell developers is, “Once it compiles, it works.”

The Haskell Ecosystem

The most challenging aspect of starting out with a new language is configuring the development environment perfectly.

To install and set up Haskell, you need to grab the entire Haskell ecosystem. The Haskell ecosystem contains:

  • The compiler called Glasgow Haskell Compiler (GHC)
  • The Interpreter called Glasgow Haskell Interpreter, (GHCi)
  • The Stack tool for managing Haskell projects
  • Other Haskell packages

You can get the one-for-all software package from www.haskell.org/downloads#platform. Haskell, like every other programming language widely adopted, has a database for its libraries, called Hackage.

How to Set Up the Haskell Development Environment

Linux Environment

If you use a Linux machine, it’s easier to run a shell command. The command below will install the Haskell platform on your machine.

$ sudo apt-get install haskell-platform

Next, type ghc on the Linux command line and hit Enter. This should prompt whether you install the GHCi interpreter or not. Type Y and hit Enter.  You should also install the Cabal build tool by running this chain of commands:

$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:hvr/ghc
$ sudo apt install cabal-install

After installation, you should see the following output when you re-run ghci on the shell:

$ ghci
GHCi, version 8.8.4: <https://www.haskell.org/ghc/>  :? for help
Prelude>

Run a simple arithmetic to confirm that ghci works properly.

Windows and Mac OS

The Haskell platform can be gotten from the official download page for both Windows and macOS.

You can install the Cabal libraries tool on Windows from here. You can install it for macOS here.

The Code Editor

Haskell does not have a specially suitable code editor for writing its programs. You can write Haskell code in any of these Code Editors:

  • IntelliJ IDEA with the Haskell Plugin installed
  • Visual Studio Code with Haskell plugins installed
  • Emacs in Haskell Mode
  • Neovim

Alternatively, you can also write Haskell code on a “dumb” code editor like Notepad++ and Sublime Text and then compile with the GHC.

What Haskell does is condition you to write codes in bits or modules, reiterating over it to make sure each module is correct and perfect for production. Thus, a smart or dumb code editor has minimal impact whatsoever on the finished code.

Feel free to check for extensions in the code editor marketplaces that will make writing Haskell source files a lot easier, like Haskero or Haskell Runner for VSCode.

Hacking into the Beauty of Haskell

The beauty of Haskell lies in:

  • The logic
  • The ease of reading Haskell code like mathematical expressions
  • You can specify the probable output for a program and the language does the rest
  • Its self-documenting nature
  • The magnificent GHCi compiler
  • The concept of purity

The ghci Compiler

Unlike other programming languages, the ghci compiler allows you to interactively use the compiler.

Also, multi-line coding which isn’t allowed in other compilers is allowed in ghci. For example, if you want to write a full script in Python IDLE, you would have to write it step by step, with each line being complete. But Haskell’s compiler makes it possible to do multi-line coding like this:

$ ghci
GHCi, version 8.8.4: <https://www.haskell.org/ghc/>  :? for help
Prelude> :{
Prelude| 60 +
Prelude| 30
Prelude| :}
90
Prelude>

Python vs Haskel – the Easiest vs the Hardest

Haskell is considered a very hard language to learn and master. On the other hand, Python is considered the easiest and most useful programming language to use.

Given that a lot of programmers are comfortable with Python programming, it is logical to explain Haskell in terms of Python:

  1. Haskell is a functional language, as mentioned before, while Python is a mixture of procedural, object-oriented, and functional programming styles. Haskell has procedural programming support, but the side-effects in the language do not make it easy.
  2. Python and Haskell have a strong type system, which means explicit conversions have to be done. However, while Python is dynamically typed, Haskell is statically typed.
  3. Python is a lot slower than Haskell.
  4. As mentioned earlier, Python is easier than Haskell to learn. The learning curve for Haskell is steep, especially for those with no prior functional programming experience.
  5. In terms of library support, Python has more libraries and use-cases than Haskell.

Major Use Cases for Haskell

The major uses of the Haskell language today include Web Development and Cardano Blockchain Development.

Haskell for Web Development

You can use Haskell for web development. Just as Python has Flask and Django, Go has Gin, Echo, and Bevel, Haskell has Scotty, Servant, and Yesod all built on top of Wai.

Wai is the Haskell package for managing HTTP requests/responses. Among the three popular Haskell frameworks, Yesod is more of a complete web framework than the others.

Haskell also has the blaze-html package used to build HTML files, similar to gohtml.

Haskell for Cardano Blockchain Development

Cardano is a new blockchain platform that adopts the Proof-of-Stake consensus algorithm. It is the first to allow peer-review research and it was created to address the downsides of Bitcoin and Ethereum.

The Cardano cryptocurrency, ADA, is a popular coin in Japan, and they have ADA ATMs installed in Tokyo.

The Cardano blockchain system is written in Plutus, a Haskell-based, Turing-complete programming language.

Plutus makes use of several tools to build smart contracts on the Cardano blockchain. It has the Plutus Application Backend which provides the environment and tools used to interact with smart contracts. Plutus also provides a fee estimator for in-house cost calculations.

You can preview and run Plutus code on the Plutus Playground.

Since Haskell is a high assurance language built for users in the financial industry, it tackles the problem of transaction exchanged failures due to bad code, and multi-sig failures that enable hackers to steal digital money.

Final Words

Thank you for reading this introduction to Haskell and its ecosystem and main uses. I hope you are inspired to start learning more about it.

In my future articles, you will be able to learn the basics of Haskell programming, as well as more about its main use cases.



Learn to code for free. freeCodeCamp’s open source curriculum has helped more than 40,000 people get jobs as developers. Get started

Понравилась статья? Поделить с друзьями:
  • Скачать gpedit msc бесплатно для windows 10 64 bit
  • Скачать google chrome 2019 для windows 7
  • Скачать hashtab для windows 10 на русском
  • Скачать gpedit msc windows 10 на русском 64 бит
  • Скачать google android sdk для windows