2013-03-17 2 views

답변

3

cabal (아직 갖고 있지 않다면 cabal-install 패키지에서 사용 가능) 이렇게 할 수 있습니다. 방금 출시 된 universe 패키지를 뻔뻔하게 사용합니다.

sorghum:~% cabal list universe 
* universe 
    Synopsis: Classes for types where we know all the values 
    Default available version: 0.0 
    Installed versions: 0.0 
    License: BSD3 

* universe-th 
    Synopsis: Construct a Dec's ancestor list. 
    Default available version: 0.0.0.6 
    Installed versions: [ Not installed ] 
    Homepage: http://github.com/jfishcoff/universe-th 
    License: BSD3 

의존 내용 : 검색을 위해

sorghum:~% cabal info universe 
* universe   (library) 
    Synopsis:  Classes for types where we know all the values 
    Versions available: 0.0 
    Versions installed: 0.0 
    Homepage:  [ Not specified ] 
    Bug reports: [ Not specified ] 
    Description: A small package, in the spirit of data-default, which allows 
        the munging of finite and recursively enumerable types 
    Category:  Data 
    License:  BSD3 
    Author:  Daniel Wagner 
    Maintainer: [email protected] 
    Source repo: [ Not specified ] 
    Dependencies: base ==4.*, void >=0.1 && <0.6 
    Documentation: /home/dmwit/.cabal/x86_64/share/doc/universe-0.0/html 
    Cached:  No 
    Modules: 
     Data.Universe 
     Data.Universe.Helpers 

다운로드 및 압축 해제하려면 :

sorghum:~% cabal unpack universe 
Downloading universe-0.0... 
Unpacking to universe-0.0/ 

또한 단지있는 당신이 --no-dependencies을 즐길 수 cabal fetch로 풀고없이 다운로드 할 수 있습니다 플래그 (또는 다시 아닐 수도 있음).

1

AFAIK 현재의 hackage에는 없습니다. 그러나 새로운 하나의 has 일부 기본 API 호출. 대부분은 html을 반환하지만 일부는 JSON 표현을 반환합니다.

+0

이것은 재미있어 보이지만 대부분의 응답은 HTML이고 종속성 목록을 가져올 방법이 없습니다 :/ –

+0

패키지 종속성에서와 마찬가지로? Cabal 라이브러리를 사용할 수 있습니다. –