haskell-platform

On Windows, packages installed with cabal seem to be unavailable in ghc/ghci

妖精的绣舞 提交于 2021-02-08 04:49:34
问题 I'm running the latest version of Haskell Platform 8.6.3 on a fairly standard Windows 10 x64 system. Now I am at my wits end getting packages installed from Hackage to work reliably. Attributing my issues to local configuration problems, I've taken all steps short of nuking my Windows installation. I have uninstalled and reinstalled Hackage, rebooted, scoured every last configuration file I could in any hidden directory or otherwise, deleted every registry key apparently related to Haskell,

On Windows, packages installed with cabal seem to be unavailable in ghc/ghci

我与影子孤独终老i 提交于 2021-02-08 04:49:13
问题 I'm running the latest version of Haskell Platform 8.6.3 on a fairly standard Windows 10 x64 system. Now I am at my wits end getting packages installed from Hackage to work reliably. Attributing my issues to local configuration problems, I've taken all steps short of nuking my Windows installation. I have uninstalled and reinstalled Hackage, rebooted, scoured every last configuration file I could in any hidden directory or otherwise, deleted every registry key apparently related to Haskell,

Cannot enter multiline statements in GHCi [duplicate]

倾然丶 夕夏残阳落幕 提交于 2020-02-27 23:13:49
问题 This question already has answers here : Multi-line commands in GHCi (4 answers) Closed 6 years ago . let x=1 y=2 z=3 does not work in GHCi, forcing me to use let {x=1;y=2;y=3} instead. How can I fix this problem? 回答1: The documentation says: GHCi also has a multiline mode, enabled by :set +m, in which GHCi detects automatically when the current statement is unfinished and allows further lines to be added. A multi-line input is terminated with an empty line. The multiline mode makes GHCi

Cannot enter multiline statements in GHCi [duplicate]

纵然是瞬间 提交于 2020-02-27 23:13:46
问题 This question already has answers here : Multi-line commands in GHCi (4 answers) Closed 6 years ago . let x=1 y=2 z=3 does not work in GHCi, forcing me to use let {x=1;y=2;y=3} instead. How can I fix this problem? 回答1: The documentation says: GHCi also has a multiline mode, enabled by :set +m, in which GHCi detects automatically when the current statement is unfinished and allows further lines to be added. A multi-line input is terminated with an empty line. The multiline mode makes GHCi

Installing & Building GHC with OSX Mavericks GHC

南笙酒味 提交于 2020-01-01 07:28:31
问题 Why doesn't my GHC 7.6.3 work after upgrading to OSX Mavericks? 回答1: It took a long time to figure out how to Work with both OSX 10.9 and GHC 7.6.3, and here are some tips to help you get back to building haskell code. Summary: Download command line tools for mavericks and use gcc version 4.2 (link to the correct gcc path in your ghc settings file) Steps: Download the command line tools for mavericks Install gcc-4.2 using homebrew brew install apple-gcc42 Edit your settings file, Line 2.

How to install Haskell Platform on Linux Debian Wheezy?

瘦欲@ 提交于 2019-12-30 08:18:09
问题 Initially I thought I would get install Haskell with couple of commands using apt-get but its seems somehow complex. As I look at the haskell org download page, I downloaded haskell-platform-2013.2.0.0.tar.gz . Then next step is somehow confusing. It ask to install GHC before installing platform but at the same time if one opens GHC download page , it shows some warning e.g Stop ! ..... we recommend installing the Haskell Platform instead of GHC . Please guide me how to install Haskell on

How to install Haskell Platform on Linux Debian Wheezy?

半世苍凉 提交于 2019-12-30 08:16:19
问题 Initially I thought I would get install Haskell with couple of commands using apt-get but its seems somehow complex. As I look at the haskell org download page, I downloaded haskell-platform-2013.2.0.0.tar.gz . Then next step is somehow confusing. It ask to install GHC before installing platform but at the same time if one opens GHC download page , it shows some warning e.g Stop ! ..... we recommend installing the Haskell Platform instead of GHC . Please guide me how to install Haskell on

How to modify cabal config file on windows

假如想象 提交于 2019-12-30 06:52:51
问题 I am installing Haskell on my desktop, which is windows system. I follow the instruction. It says: Modify your cabal config file (you can verify the location by running "cabal user-config init") to contain the following lines: extra-prog-path: C:\Program Files\Haskell Platform\8.0.2\msys\usr\bin extra-lib-dirs: C:\Program Files\Haskell Platform\8.0.2\mingw\lib extra-include-dirs: C:\Program Files\Haskell Platform\8.0.2\mingw\include I tried to call "cabal user-config init" in command prompt,

json parsing in haskell

醉酒当歌 提交于 2019-12-30 04:02:08
问题 I'm trying to parse JSON data in haskell. Having gone through a slew of websites, this is the furthest I have been able to get to. data Address = Address { house :: Integer, street :: String, city :: String, state :: String, zip :: Integer } deriving (Show) data Person = Person { name :: String, age :: Integer, address :: Address } deriving (Show) getName :: Person -> String getName (Person n _ _) = n getAddress :: Person -> Address getAddress (Person _ _ a) = a getState :: Address -> String

Portable package installation on Haskell Platform with Cabal on windows

霸气de小男生 提交于 2019-12-22 18:26:41
问题 I have Windows XP and Haskell Platform 2013 installed on it. When I want to compile my code on some computer, which has not Haskell Platform installed on it, and I'm not allowed to install anything, I can copy my Haskell Platform on USB flashcard, and run on this computer, and it's work just fine. But sometimes I need additional packages, that are not part of the standard Haskell Platform build. I can simply install it on my personal computer with Cabal, but I don't know, how to install them