haskell-platform

How do I uninstall older versions of GHC?

自闭症网瘾萝莉.ら 提交于 2019-12-09 17:30:15
问题 I installed Haskell Platform 7.10.3 on my mac and when it finished it said that it had detected older versions of GHC and to uninstall them, but how do I do that? I'm using a macbook air with OS X 10.11.3. 回答1: You can uninstall prior platforms by running uninstall-hs from the command line. You'll get an output like: -- Versions found on this system 7.10.3 -- To remove a version and all earlier: uninstall-hs thru VERSION -- To remove only a single version: uninstall-hs only VERSION And you

GHC cannot find libraries on fresh install of Haskell-Platform

旧街凉风 提交于 2019-12-09 04:30:35
I'm trying to learn how to use Haskell, but I've run into a little roadblock. I'm using MacOSX 10.12.6 and installed Haskell Platform using: $ brew cask install haskell-platform with no modifications. When I try to compile a program with parsec imported, Haskell-Platform can't find it: $ ghc -v test.hs ... package parsec-3.1.11-DPgnR92AWEaFOaixmwipet is unusable due to shadowed dependencies: mtl-2.2.1-19EL8AGBsN3DnnOhrC9xY3 text-1.2.2.2-EGUst8sqNAZCw1xLPcmcMH ... test.hs:2:1: error: Could not find module ‘Text.Parsec’ Locations searched: Text/Parsec.hs Text/Parsec.lhs Text/Parsec.hsig Text

GHC cannot find libraries on fresh install of Haskell-Platform

我的未来我决定 提交于 2019-12-08 07:24:50
问题 I'm trying to learn how to use Haskell, but I've run into a little roadblock. I'm using MacOSX 10.12.6 and installed Haskell Platform using: $ brew cask install haskell-platform with no modifications. When I try to compile a program with parsec imported, Haskell-Platform can't find it: $ ghc -v test.hs ... package parsec-3.1.11-DPgnR92AWEaFOaixmwipet is unusable due to shadowed dependencies: mtl-2.2.1-19EL8AGBsN3DnnOhrC9xY3 text-1.2.2.2-EGUst8sqNAZCw1xLPcmcMH ... test.hs:2:1: error: Could not

Portable package installation on Haskell Platform with Cabal on windows

六月ゝ 毕业季﹏ 提交于 2019-12-06 12:27:34
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 in such a way that they could work portable, i. e. from my USB flashcard on not my computer. I tried

Cabal rebuild all with enable-shared flag

女生的网名这么多〃 提交于 2019-12-04 06:15:48
I am having an issue with building a shared library with ghc and I think I need to rebuild my haskell packages with --enable-shared, is there an easy way to rebuild all of my packages with cabal with the flag --enable-shared? If you have a ~/.cabal/world, cabal install --reinstall --enable-shared world could work, but test with the --dry-run flag first. That will, however only take care of cabal-installed packages. If you have packages installed with your distro's package manager, the distro might also provide shared versions for those (otherwise, you'd have to do it manually). Also, it would

How do I uninstall older versions of GHC?

倾然丶 夕夏残阳落幕 提交于 2019-12-04 04:57:34
I installed Haskell Platform 7.10.3 on my mac and when it finished it said that it had detected older versions of GHC and to uninstall them, but how do I do that? I'm using a macbook air with OS X 10.11.3. You can uninstall prior platforms by running uninstall-hs from the command line. You'll get an output like: -- Versions found on this system 7.10.3 -- To remove a version and all earlier: uninstall-hs thru VERSION -- To remove only a single version: uninstall-hs only VERSION And you can proceed from there... 来源: https://stackoverflow.com/questions/37034915/how-do-i-uninstall-older-versions

ghc 7.4.1 not producing stub.o files

跟風遠走 提交于 2019-12-04 03:17:11
问题 I'm running the default installation of Haskell platform on Ubuntu and when I run this example http://www.haskell.org/haskellwiki/Calling_Haskell_from_C "ghc -c -O Safe.hs" is not producing the Safe_stub.o file. I have checked this on a separate installation of Ubuntu on a friends box and on both 32 bit and 64 bit Ubuntu installs. Can somebody confirm if this is specific to ghc-7.4.1 or Ubuntu installs only? Thanks! 回答1: It's a ghc-7.4 ( ghc >= 7.2 actually) thing. That doesn't need and

How do I create an operator in Haskell?

梦想的初衷 提交于 2019-12-02 22:03:59
Making a ternary logic table, and I would like to make my own function for an operator that I'll call <=> . So, for example, I want to do this, but that isn't right. what's the correct way to do this? data Ternary = T | F | M deriving (Eq, Show, Ord) <=> :: Ternary -> Ternary -> Ternary <=> T F = F <=> T T = T <=> T M = M <=> F F = T <=> F T = F <=> F M = M <=> M F = M <=> M T = M <=> M M = T Just add parentheses around your operator: (<=>) :: Ternary -> Ternary -> Ternary (<=>) T F = F (<=>) T T = T (<=>) T M = M (<=>) F F = T (<=>) F T = F (<=>) F M = M (<=>) M F = M (<=>) M T = M (<=>) M M

Compiling Haskell code in Cygwin, and some other bugs in Haskell Platform on Windows

流过昼夜 提交于 2019-12-01 18:15:46
I am trying to compile a simple hello world program in Haskell, with Haskell Platform 2011.2.0.1. If I load the code in WinGHCi, and use the GUI to compile, the .exe is created. Then I can run the .exe from Cygwin. But if I try to compile the code in Cygwin (using ghc --make ), linker fails. But again, if I compile from the Windows cmd prompt, then the compile+linker works fine. Are there any other environment variables I need to import into Cygwin, to make the compile+linker work in it? I have put the following dirs in my Cygwin PATH: 2011.2.0.1/lib/extralibs/bin , 2011.2.0.1/bin (these are

How to install Haskell Platform on Linux Debian Wheezy?

旧城冷巷雨未停 提交于 2019-12-01 03:14:31
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 Debian Wheezy. Can we build a .deb installation package from this package ? vivian $ sudo apt-get install