From: marioBB <marJobb@protonmail.com>
To: zimoun <zimon.toutoune@gmail.com>
Cc: "help-guix@gnu.org" <help-guix@gnu.org>
Subject: Re: compile
Date: Mon, 02 May 2022 19:04:15 +0000 [thread overview]
Message-ID: <E5PKpQ9apL0jHicyQtf27W7ZY6Lcg_gvJZ4KO-MF6rwYotcovly8vG_UPdKpl-ssrH6fH-HH4iMumJDuKeWzep-8QkvP81n8Dg2rMaodClc=@protonmail.com> (raw)
In-Reply-To: <87czgw9t7x.fsf@gmail.com>
> On Sat, 02 Apr 2022 at 18:46, marioBB via help-guix@gnu.org wrote:
>
> > I play around ghc compilation using guix ghc-* packages, but I've got a problem.
> > When I install some ghc package (guix install ghc-)
> > I'd like to use it in this way 'ghc -o output HelloWorld.hs -package ghc-
> > I've got an error `: cannot satisfy -package zstd` (in this example I've tried to use zstd)
> > 'ghc-pkg list' and 'ghc-pkg describe ' show that the package is available for ghc.
> > Some suggestions?
>
>
> Could you be more precise about which ghc- packages you installed and
> trying to use?
Hi Simon,
thank you for answering to my issue.
I chose arbitrary package (here `zstd`)
I used manifest file with:
(specifications->manifest
'("ghc@8.10.7"
"ghc-zstd"))
$ guix shell
$ ghc-pkg list |grep zstd
I got:
/gnu/store/gagi2sh0wma9vxbdl3dzgdwc64jfqd6r-profile/lib/ghc-8.10.7/ghc-zstd-0.1.3.0
zstd-0.1.3.0
$ ghc -o output -package zstd Source.hs
where Source.hs is
--
import Codec.Compression.Zstd
main = pure ()
--
I got a message:
Loaded package environment from /home/ms/.ghc/x86_64-linux-8.10.7/environments/default
<command line>: cannot satisfy -package zstd
(use -v for more information)
I don't have experience in invoking ghc directly maybe I missed something.
But the question is What do I try to achieve?
Use guix as building and packaging system for Haskell software without using Cabal, Stack.
Just pure execution ghc compiler using Guix.
Cheers,
Mario
next prev parent reply other threads:[~2022-05-02 19:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-02 18:46 compile marioBB via
2022-05-02 9:30 ` compile zimoun
2022-05-02 19:04 ` marioBB [this message]
2022-05-02 20:21 ` compile zimoun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='E5PKpQ9apL0jHicyQtf27W7ZY6Lcg_gvJZ4KO-MF6rwYotcovly8vG_UPdKpl-ssrH6fH-HH4iMumJDuKeWzep-8QkvP81n8Dg2rMaodClc=@protonmail.com' \
--to=marjobb@protonmail.com \
--cc=help-guix@gnu.org \
--cc=zimon.toutoune@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).