小编Die*_*Saa的帖子

我如何确定我的GHC版本?

这可能是一个非常愚蠢的问题,但我似乎无法找到答案......

haskell version ghc

25
推荐指数
3
解决办法
9139
查看次数

如何在emacs中打开多个minibuffers?

假设我在迷你缓冲区中输入一个命令,我意识到我需要记住某个文件的路径作为我命令的参数.我是否可以取消取消我开始输入的命令来执行Cx d或转到shell,在辅助迷你缓冲区上单击(单击?这是什么?)来运行此命令?

emacs

10
推荐指数
1
解决办法
240
查看次数

如何在尝试制作haskell-platform时修复错误2?

我下载了哈斯克尔平台的源从这里:http://www.haskell.org/platform/linux.html,安装GHC和/.configure做到了.但是,当我做sudo make时,我收到以下错误:

Preprocessing library HUnit-1.2.4.2...

Test/HUnit/Base.hs:1:1:
    Could not find module `Prelude'
    Perhaps you haven't installed the profiling libraries for package `base'?
    Use -v to see a list of the files searched for.

Error:
Building the HUnit-1.2.4.2 package failed
make: *** [build.stamp] Error 2
Run Code Online (Sandbox Code Playgroud)

有谁知道如何解决这个问题?

我正在尝试在Ubuntu 12.04.1 LTS上安装

ubuntu haskell haskell-platform

8
推荐指数
2
解决办法
2594
查看次数

如何以编程方式解密PGP Self Decrypting Archive?

每天我收到SDA文件,我有密码.解密是通过运行文件并在弹出的程序窗口中手动输入密码来完成的.我想避免这个手动步骤,并将其转变为自动化过程的一个步骤.

它的工作方式如下:一旦我的守护进程检测到新文件已经到达我的收件箱,我的程序就会下载,解密并保存.我知道如何用代码完成所有这些,除了解密部分.

而不是运行.exe文件,并手动输入密码,我想读取它的内容,并使用密码,解密其中包含的数据,如下所示:

4d5a 9000 0300 0000 0400 0000 ffff 0000
b800 0000 0000 0000 4000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 f000 0000
0e1f ba0e 00b4 09cd 21b8 014c cd21 5468
...etc
Run Code Online (Sandbox Code Playgroud)

我目前使用的语言是PHP,但是看一下任何语言的实现都会有所帮助.

有任何想法吗?

encryption cryptography exe gnupg pgp

6
推荐指数
1
解决办法
3118
查看次数

如何让cabal安装酸状态?

我是Haskell的新手,想尝试使用酸状态库,但在尝试安装它时会得到以下输出:

>cabal install acid-state
Resolving dependencies...
Configuring acid-state-0.7.5...
Building acid-state-0.7.5...
Preprocessing library acid-state-0.7.5...
[ 1 of 15] Compiling Data.Acid.CRC    ( src\Data\Acid\CRC.hs, dist\build\Data\Ac
id\CRC.o )
[ 2 of 15] Compiling Paths_acid_state ( dist\build\autogen\Paths_acid_state.hs,
dist\build\Paths_acid_state.o )
[ 3 of 15] Compiling Data.Acid.Archive ( src\Data\Acid\Archive.hs, dist\build\Da
ta\Acid\Archive.o )
[ 4 of 15] Compiling FileIO           ( src-win32\FileIO.hs, dist\build\FileIO.o
 )

src-win32\FileIO.hs:43:5:
    Not in scope: `catchIO'
    Perhaps you meant `catch' (imported from Prelude)

src-win32\FileIO.hs:55:6:
    Not in scope: `tryE'
    Perhaps you meant `try' (imported from Control.Exception.Extensible)

src-win32\FileIO.hs:56:6: …
Run Code Online (Sandbox Code Playgroud)

haskell cabal acid-state

3
推荐指数
1
解决办法
184
查看次数