在Haskell中导入加密模块

时间:2017-10-29 17:54:21

标签: haskell module

我正在尝试运行一些haskell文件,我之前从未做过haskell,而且我遇到了错误。

 Cabal-2.0.0.2
    GLURaw-2.0.0.3
    GLUT-2.7.0.12
    HTTP-4000.3.7
    HUnit-1.6.0.0
    ObjectName-1.1.0.1
    OpenGL-3.0.2.0
    OpenGLRaw-3.2.5.0
    QuickCheck-2.10.0.1
    StateVar-1.1.0.4
    array-0.5.2.0
    async-2.1.1.1
    attoparsec-0.13.2.0
    base-4.10.0.0
    binary-0.8.5.1
    bytestring-0.10.8.2
    call-stack-0.1.0
    case-insensitive-1.2.0.10
    containers-0.5.10.2
    deepseq-1.4.3.0
    directory-1.3.0.2
    fgl-5.6.0.0
    filepath-1.4.1.2
    fixed-0.2.1.1
    ghc-8.2.1
    ghc-boot-8.2.1
    ghc-boot-th-8.2.1
    ghc-compact-0.1.0.0
    ghc-prim-0.5.1.0
    ghci-8.2.1
    half-0.2.2.3
    hashable-1.2.6.1
    haskeline-0.7.4.0
    haskell-src-1.0.2.0
    hoopl-3.10.2.2
    hpc-0.6.0.3
    hscolour-1.24.1
    html-1.0.1.2
    integer-gmp-1.0.1.0
    integer-logarithms-1.0.2
    mtl-2.2.1
    network-2.6.3.2
    network-uri-2.6.1.0
    parallel-3.2.1.1
    parsec-3.1.11
    pretty-1.1.3.3
    primitive-0.6.2.0
    process-1.6.1.0
    random-1.1
    regex-base-0.93.2
    regex-compat-0.95.1
    regex-posix-0.95.2
    rts-1.0
    scientific-0.3.5.1
    split-0.2.3.2
    stm-2.4.4.1
    syb-0.7
    template-haskell-2.12.0.0
    terminfo-0.4.1.0
    text-1.2.2.2
    tf-random-0.5
    time-1.8.0.2
    transformers-0.5.2.0
    unix-2.7.2.2
    unordered-containers-0.2.8.0
    vector-0.12.0.1
    xhtml-3000.2.2
    zlib-0.6.1.2


name:            ecdsa
version:         0.2
cabal-version:   >= 1.8
license:         OtherLicense
license-file:    COPYING
category:        Crypto
copyright:       © 2014 Stephen Paul Weber
author:          Stephen Paul Weber <singpolyma@singpolyma.net>
maintainer:      Stephen Paul Weber <singpolyma@singpolyma.net>
stability:       experimental
tested-with:     GHC == 7.4.1
synopsis:        Basic ECDSA signing implementation
homepage:        https://github.com/singpolyma/ecdsa-haskell
bug-reports:     https://github.com/singpolyma/ecdsa-haskell/issues
build-type:      Simple
description:
        Wraps the stuff in hecc to do ECDSA.

extra-source-files:
        README

library
        exposed-modules:
                ECDSA

        other-modules:
                ECDSA.Util

        build-depends:
                base == 4.*,
                bytestring,
                hecc,
                crypto-pubkey-types,
                crypto-api

source-repository head
        type:     git
        location: git://github.com/singpolyma/ecdsa-haskell.git

如何导入/安装这些模块?谢谢。

ghc-pkg list的输出

remote add new_origin git@github-company:RiyaKapuria/ReduxForm.git

这是.cabal文件,我从这个github链接下载了这个项目,试图理解它

https://github.com/singpolyma/ecdsa-haskell

1 个答案:

答案 0 :(得分:0)

我尝试构建软件包,但它需要llvm-3.9才能正常工作,由于某种原因,我的设置中没有。

hecc也被弃用了 - git repo已经4年了,已经过时了。如果你将它用于生产目的,我强烈反对你这样做。

这可能是stack.yaml,但hF2 + llvm仍然像我之前所说的一样烦扰我。

stack.yaml

resolver: nightly-2017-10-28
packages:
- .
extra-deps:
- hF2-0.2
- hecc-0.4.1.1
flags: {}
extra-package-dbs: []

尝试使用stack build

进行构建