From owner-freebsd-haskell@freebsd.org Tue Feb 25 06:54:34 2020 Return-Path: Delivered-To: freebsd-haskell@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 746AA252D95 for ; Tue, 25 Feb 2020 06:54:34 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell1.rawbw.com (shell1.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 48RV6J5bdDz4QTV; Tue, 25 Feb 2020 06:54:32 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from yv.noip.me (c-73-189-35-76.hsd1.ca.comcast.net [73.189.35.76]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id 01P6sUDA083021 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 24 Feb 2020 22:54:31 -0800 (PST) (envelope-from yuri@rawbw.com) X-Authentication-Warning: shell1.rawbw.com: Host c-73-189-35-76.hsd1.ca.comcast.net [73.189.35.76] claimed to be yv.noip.me Subject: Re: How to port a Haskell project that doesn't use cabal, and uses stack instead? To: Gleb Popov Cc: freebsd-haskell@freebsd.org References: <09e95df1-c606-9be8-2117-cbf93c52f71a@rawbw.com> From: Yuri Message-ID: Date: Mon, 24 Feb 2020 22:54:29 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 48RV6J5bdDz4QTV X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of yuri@rawbw.com designates 198.144.192.42 as permitted sender) smtp.mailfrom=yuri@rawbw.com X-Spamd-Result: default: False [-3.94 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[76.35.189.73.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:198.144.192.32/27]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; DMARC_NA(0.00)[rawbw.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[42.192.144.198.list.dnswl.org : 127.0.10.0]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; IP_SCORE(-2.74)[ip: (-6.53), ipnet: 198.144.192.0/20(-3.52), asn: 7961(-3.61), country: US(-0.05)]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:7961, ipnet:198.144.192.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-haskell@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD-specific Haskell issues and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Feb 2020 06:54:34 -0000 On 2020-02-24 02:09, Gleb Popov wrote: > > This project has "package.yaml" file. It is a file for hpack program, > which can be turned into a proper .cabal file. Start with > > USES=cabal:hpack > > Other than that, you'll need to add USE_GITHUB=yes to make the > distfile fetch from GitHub. It fails: cabal: Internal error in target matching. It should always be possible to find a syntax that's sufficiently qualified to give an unambiguous match. However when matching 'exe:alchemy' we found exe:alchemy (unknown-component) which does not have an unambiguous syntax. The possible syntax and the targets they match are as follows: 'exe:alchemy' which matches exe:alchemy (unknown-component), :pkg:exe:lib:exe:file:alchemy (unknown-file) Yuri PORTNAME=    alchemy PORTVERSION=    g20200223 CATEGORIES=    security haskell MAINTAINER=    haskell@FreeBSD.org COMMENT=    X LICENSE=    BSD3CLAUSE USES=        cabal:hpack USE_GITHUB=    yes GH_ACCOUNT=    cpeikert GH_PROJECT=    ALCHEMY GH_TAGNAME=    76b9fd7 .include