问题标签 [leksah]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
1353 浏览

haskell - 如何有效地使用 leksah?

如何有效地使用 leksah haskell IDE?首先,我非常感谢 leksah 人所做的所有工作。太棒了!

但是,我无法在 leksah 有效地工作。

如何在 do 表达式中显示某些变量的类型,例如myData?当我右键单击它然后输入时,错误消息会变为<interactive>:1:1: Not in scope: 'myData'. 同样,在我在 leksah 中使用 ghci 执行某些操作后,build( CtrlB) 不再编译我的项目,而是突然执行其他操作。

我一般如何有效地使用 leksah,尤其是关于 leksah 中的 ghci(比如显示一种不是顶级但嵌套的东西)?你会建议的前 5 件事是什么?

0 投票
1 回答
287 浏览

debugging - Leksah 调试器失败,因为“GHCi 未运行”

我刚刚从 OSX 10.9.3 上的二进制安装程序安装了 Leksah。每当我尝试启用调试模式时,我都会在控制台中看到一行字

===========127==================

当我尝试执行调试相关活动时,我收到相同的错误消息:GHCi 调试器未运行。点击“start GHCi”没有任何效果,连续尝试都会弹出错误。我已经创建了一个带有包的工作区,并且我已经配置了包(因此它可以从 Leksah 编译并运行良好)。我正在尝试从默认的 Main.hs 源文件中运行调试器。

编辑:它不再以任何可预测的方式编译或运行。编译和运行只是给了我如上所述的一行输出(对于编译,它显示一个 =2= ,然后在暂停后显示 =127= )。有时运行会打印早期构建的输出(将 main 更改为其他内容,它仍然会打印“hello”)。没有显示错误。

EDIT2:尝试在另一台计算机上安装(我通过安装程序安装了 Haskell),我意识到 Leksah 应该需要一些时间来验证包等等。它似乎在我的主计算机上跳过了这个阶段,在那里我用自制软件安装了 haskell 平台。我感觉 Leksah 根本找不到 GHC,但我找不到任何与 GHC 和相关路径有关的偏好。

0 投票
0 回答
30 浏览

haskell - 在 Leksah 中清除 eval

我不确定这是问这个问题的正确地方。如果不是 - 我很抱歉。

在 Leksah 中,我可以右键单击并选择eval,然后将评估的消息打印到日志中。

然后我可以选择一个不同的功能eval,但我不能一起清除它,所以什么都没有eval

0 投票
1 回答
126 浏览

haskell - Include other files in scope for program

I'm trying to make my first steps into the haskell world and for this I chose to use the leksah IDE. However I'm not sure this is truly leksah specific but guess it might be more of a cabal / build problem.

Now I'm trying to solve 99 Haskell problems and for this I've opened a new workspace and created a new package. This brings me basicaly to something like the following directory structure:

My Main.hs file looks like this:

which blames me, that Not in scope: myLast. I can fix this by writing the definition above the definition for main = putStrLn ... but what I want is to split this into different files and to include the files to my scope.

How is this done?

Guess it has something to do with cabal which leksah is using and I have to include it somehow, like I would do with :load 01_lists.hs in the REPL. I've added the file in leksah under Package -> Extra Files but that alone didn't work out.

My environment is:

  • Fedora 20
  • Haskell-platform 2013.2.0.0 that is
    • leksah 0.12.1.3
    • cabal 1.16.0.2 (that is no cabal repl command which comes in Cabal 1.18 and would most likely help me)

I tend to believe it's an easy configuration problem with cabal. Would anyone be so kind to lend me a hand with this?

0 投票
1 回答
455 浏览

haskell - 无法安装 lens-4.2 : Cabal 1.20.0.2, GHC 7.6.3, Ubuntu 14.04

我正在安装 leksah(“cabal install leksah”),但它失败并显示类似于下面的消息(关于镜头 4.2 依赖项)

我尝试安装最新版本,但这并没有解决我的问题。(我已经注销了 - “ghc-pkg unregister lens”)

注意:我不想在沙箱上安装 leksah

“ghc-pkg 列表”的输出

0 投票
2 回答
667 浏览

haskell - Haskell Leksah 和 GHCI

在 Leksah 中,每当尝试调试任何东西时都会出现以下错误。首先它说:

“GHCi 调试器没有运行。”

所以我点击“启动 GHCi”

然后我在控制台中得到以下信息:

GHCi, version 7.8.3: http://www.haskell.org/ghc/ :? for help ghc: --interactive can't be used with -prof or -unreg. Usage: For basic information, try the `--help' option.

我的项目cabal builds很好。我已经在我的cabalapt-get返回的技巧中做了所有的事情来尝试让这个工作。但无济于事。有任何想法吗?

0 投票
1 回答
239 浏览

haskell - 由于 regex-tdfa-text-1.0.0.2 导致 leksah 安装失败

在 ubuntu 12.04、ghc 7.10.3、cabal 1.22.3、4 gigs RAM 上,按照这些说明安装 leksah 时出现错误。

知道如何解决这个问题吗?这是什么原因造成的?

0 投票
0 回答
37 浏览

haskell - Leksah / Haskell:搜索对给定类型进行操作的函数(比如 [a]、[Char])

有没有一种简单的方法来搜索在给定类型上运行的函数,比如 on [a]?在 Leksah Haskell IDE 中还是使用其他方法?

如果我想弄清楚所有可以做[a]或说的事情,[Char]我该怎么办?

"hello".类似于在 Java/Scala IDE中键入+autocomplete?

这样所有可能的操作都会显示在该类上(即类成员函数)?

0 投票
0 回答
70 浏览

haskell - Leksah,跳转到当前包中的定义以及沙盒中安装的包中定义的名称

我正在使用用 ghc 7.10.1 构建的 Leksah 0.15.0.1。

这是问题所在:

如果我 ctrl+单击来自系统范围安装库的函数名称,那么 Leksah 会转到定义,很好!

但是,这(转到定义)不适用于

1) 在当前编辑的包中定义的函数

2) 在位于沙箱中的包中定义的函数。

例如下图中,我可以跳转到 的定义,SDL.QuitEvent但不能跳转到 的定义AppInput

这很奇怪,因为AppInput它是在我正在编辑的同一个文件中SDL.QuitEvent定义的,并且是在系统范围内安装的 cabal 包中定义的。

知道如何解决这个问题吗?可能出了什么问题?

在此处输入图像描述

在此处输入图像描述

0 投票
1 回答
195 浏览

haskell - Haskell/GHC 7.10.1/Leksah:此警告的含义是什么:“名称...在源文件中找到但不在范围内”

我正在使用 Leksah IDE 0.15.0.1,在编译示例包时收到警告:“名称...在源文件中找到但不在范围内”。

这个警告是什么意思?

我用谷歌搜索了这段文字,但发现它很有启发性。

在此处输入图像描述