Questions tagged [cabal]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

How to fix `cabal build` in Plutus Starter Dev Container

I have seen other people with this problem on Github. Broken cabal build Following these instructions, I am able to get to the line that says: cabal build from the terminal should work (unless you ...
user avatar
0 votes
1 answer
46 views

Plutus Starter nix-shell build errors on MacOS Monterey M1 - ghc-cabal: Encountered missing or private dependencies

MacOS Monterey, Apple M1 Installed latest GHC via https://www.haskell.org/ghcup/ but not Stack. Installed nix 2.8.0 multiuser Set Cache in /etc/nix/nix.conf as below: UPDATE: I have since updated nix....
user avatar
  • 90
0 votes
0 answers
25 views

Plutus Pioneer Cohort 3, Mac M1 cabal build error: Failed to build small-steps-test-0.1.0.0. , symbol not found in flat namespace '_sodium_free'

I'm using MacOS Monterey with M1 chip, and trying to build plutus-app using Nix Entering $ nix-shell using the specified tag from week01 is working fine, hence I can enter into the shell. The problem ...
user avatar
1 vote
2 answers
59 views

Starting a new Plutus Project

I've read a few threads on Cardano Stack exchange on how to start a new Plutus project, but there doesn't seem to be a satisfying answer. I've read the following: plutus starter course How to Start a ...
user avatar
0 votes
0 answers
20 views

I got error while building package plutus-core-0.1.0.0 when installing cardano-wallet using stack

I'm using MacOS Monterey with M1 chip and trying to install cardano-wallet. I've already installed pre-requisites cardano-node and cardano-cli no problem, and already synced with the testnet. I was ...
user avatar
0 votes
0 answers
17 views

Deploying a Contract Problem

I know this is probably the fifth post about deploying smart contracts, but I seem to not succeed doing it. Here is what I tried: Installed Cardano Tesnet Alozo with Docker Synced Testnet with docker ...
user avatar
1 vote
2 answers
71 views

How to install cardano-node and cardano-cli on Mac M1

I tried to install cardano-cli and cardano-node using this documentation and stuck on below step mkdir -p $HOME/.local/bin cp -p "$(./scripts/bin-path.sh cardano-node)" $HOME/.local/bin/ cp -...
user avatar
  • 11
0 votes
1 answer
31 views

how to import cardano-cli project into dependecies under cabal?

I've got the following nix-shell: let src = builtins.fetchGit { url = "git@github.com:input-output-hk/plutus-apps.git"; # url = "https://github.com/input-output-hk/plutus-...
user avatar
0 votes
2 answers
35 views

Why can't the PAB webserver find a socket in PAB-Nami demo?

I'm trying to run the PAB-Nami simple demo in the Plutus Apps repo. When I run the PAB, either using cabal or with the nix-shell script, I'm getting the error: plutus-pab-nami-demo: Network.Socket....
user avatar
0 votes
1 answer
60 views

Cardano DB Sync - RTS Options

After successfully with previous question, where I tried to make cardano-node and cardano-db-sync run as a services, I tried to play around with +RTS ... -RTS option on cardano-db-sync, specifically ...
user avatar
  • 45
2 votes
0 answers
64 views

Issues running Chain-index on WSL2 - fully syncing but not running the webserver

I've run into an issue with the chain-index while trying to run a PAB testnet environment. The index will start up, sync to 100%, update to new blocks, but the webserver will never start. In fact, the ...
user avatar
0 votes
1 answer
15 views

Trying to understand import, browse, "as" and other terminology

I'm trying to understand at the lowest level exactly how Plutus/Haskell/Cabal works. I executed the following in the repl (inside nix): > import PlutusTx.Builtins.Internal as PTxBI Doing this ...
user avatar
  • 177
3 votes
1 answer
109 views

Cardano DB Sync as Service (running on background) on Ubuntu

Linux/Ubuntu - Cardano newbie, want to ask things around! :) At the moment, I'm successfully installed cardano-node and can make it run as a service (pulling data automatically on the background), by ...
user avatar
  • 45
0 votes
1 answer
44 views

How Do you generate the Cabal and Nix files for a new project?

I built the plutus-apps repo from iohk, and then made a different folder to orgenise my projects. I want to know how to have the nix files needed to make the environment generated in the new project ...
user avatar
0 votes
1 answer
158 views

Week 4 issue with Cabal build: Not in scope: type constructor or class 'JWT.EncodeSigner'

When running cabal build or cabal repl in the core/week04 folder I get the following error message when building the playground-common-0.1.0.0 package: src/Auth.hs:130:41: error: Not in scope: ...
user avatar
0 votes
1 answer
64 views

Unable to install Gloss on Mac M1

I just learning about Haskell and trying to create Haskell project with Cabal, but when I tried install Gloss, it always return an error -- error ... ghc: could not execute: opt cabal: Failed to build ...
user avatar
  • 11
0 votes
0 answers
58 views

VS Code Haskell Language Server configuration: pass flag to cabal?

I'm working with the plutus-starter repo (https://github.com/input-output-hk/plutus-starter) and this is working with VS Code on my Macbook Pro and running in a Docker devcontainer. HSL even shows ...
user avatar
  • 195
2 votes
1 answer
32 views

What is a library stanza?

I deduce what stanza definitions are but I was struggling to find an exact definition and explanation why this is used in Haskell/Plutus. What exactly is a stanza? Can you compile code Haskell/Plutus ...
user avatar
0 votes
0 answers
45 views

Where is Week04.Monad?

Doing Week 04 of cohort 3 Plutus Pioneers here. In the repl inside the nix shell, inside ~/plutus/plutus-pioneer-program/code/week04 Watching PPP 030402 at 34:54 to about 39:59. When I do :l src/...
user avatar
  • 177
5 votes
2 answers
333 views

How can I set up my dev environment faster after pulling the pioneer code repos for each week

Each week so far it takes me over 1.5 hours to bring my dev environment up to date after updating the plutus-pioneer-program and plutus-app repos. This is really painful. I'm wondering if someone can ...
user avatar
1 vote
0 answers
21 views

cabal repl outputs a lot of changing git HEADs on plutus-pioneer-program

This is a question regarding the plutus-pioneer-program. I want to load the modules of a given week into the ghci shell. The first time I run cabal repl it takes quite a long time to download things ...
user avatar
  • 111
4 votes
1 answer
31 views

Incorrect Pub Key from Wallet Emulator

I am getting incorrect pubkeys by running mockWalletPaymentPubKey $ knownWallet 1 and mockWalletPaymentPubKey $ knownWallet 2 (from here https://youtu.be/ae7U_yKIQ0Y?t=1390). I checked that I am in ...
user avatar
  • 125
1 vote
0 answers
22 views

cabal repl error

When I run cabal repl in the week01 folder I get an error message that states the following */plutus-pioneer-program/code/week01/dist-newstyle: createDirectory: permission denied (Permission ...
user avatar
  • 11
1 vote
2 answers
113 views

Trouble fulfilling: base, libsystemd-journal, lobemo-scribe-systemd

2 days stucked with this (running on Ubuntu): [nix-shell:~/plutus-pioneer-program/code/week01]$ cabal build Warning: Requested index-state 2021-10-20T00:00:00Z is newer than 'hackage.haskell.org'! ...
user avatar
0 votes
1 answer
43 views

Error on "cabal build" - Week01 - warning is in EnglishAuction.hs

My cabal build ended in a warning - yet not sure if this needs to be resolved or if build completed ? Seems like build aborted over a warning ? Below is the warning that seems to have aborted the ...
user avatar
  • 11
2 votes
1 answer
83 views

What is the difference between "cabal build" and "cabal repl"?

What does "cabal repl" does and how it differentiates from "cabal build"? the documentation says: loads all of the modules of the target into GHCi as interpreted bytecode But I ...
user avatar
  • 23
0 votes
0 answers
37 views

cabal: Error parsing project file

Just posting this here just in case anyone searches this stackexchange for this and doesn't find the answer like I did. If anyone runs into this error while doing a cabal build in the plutus-pioneer-...
user avatar
3 votes
3 answers
126 views

Running week01 expressions in repl

I am new to haskell and I am trying to run a few expressions from the English Auction Contract in the repl. So if I want to run ValidatorHash "f" from the second last line of the Contract in ...
user avatar
  • 125
0 votes
3 answers
101 views

Error on cabal build - Encounterd missing dependesies

I followed the instructions on lecture one - part 3 and I was trying to start week 1 project. When I run cabal build got the following error: [nix-shell:~/plutus-pioneer-program/code/week01]$ sudo ...
user avatar
0 votes
1 answer
55 views

cabal build Out of Memory Mac VS Code Docker

This is a follow up to my previous cabal build problem. I ran cabal update. Then cabal build was killed. I tried increasing Docker memory from 2GB to 3GB. My old Mac has 8GB, Activity Monitor peaked ...
user avatar
2 votes
1 answer
48 views

cabal: Could not resolve dependencies:plutus-core:happy:exe.happy

In the VS Code Docker Env setup on a Mac. I opened the starter project in the container. Ran cabal build in VS Terminal with devcontainer prompt. Warning: Requested index-state 2021-08-14T00:00:00Z is ...
user avatar
0 votes
1 answer
21 views

Cannot build cardano-wallet-2021-12-15

I'm trying to build cardano-wallet with cabal. However, it fails wit the following error: [19 of 20] Compiling Cardano.Ledger.TxIn ( src/Cardano/Ledger/TxIn.hs, dist/build/Cardano/Ledger/TxIn.o, dist/...
user avatar
  • 756
0 votes
0 answers
8 views

cabal repl / ghci quick lookup history

in cabal repl I typically use the UP key to lookup previous code I've ran, problem is it becomes a lot to sift through - is there a way to first pattern match e.g. I enter "mustSpe", and ...
user avatar
  • 423
3 votes
2 answers
116 views

Plutus starter cabal build issue

Running the instructions at https://github.com/input-output-hk/plutus-starter#readme After opening the container in VSCode, and attempting to run the following in the terminal. [devcontainer]$ cabal ...
user avatar
  • 183
0 votes
2 answers
150 views

Impossible to install ghc 8.10.4

with cabal build all, i receive the message below [13 of 14] Compiling Generics.SOP.Instances ( src/Generics/SOP/Instances.hs, dist/build/Generics/SOP/Instances.o, dist/build/Generics/SOP/Instances....
user avatar
  • 193
1 vote
2 answers
55 views

Cabal repl is very slow

I've already setup the IOHK binary cache in /etc/nix/nix.conf, yet when I build PPP lecture #2 I have to build many modules. whereas it seems Lars only has to process one. Does anyone know why this ...
user avatar
1 vote
1 answer
42 views

Parse error on input ']' when running cabal build in my Plutus code

I have a code that compiles and runs well in the Plutus playground, but when I try to run cabal build I get an error when calling mkTypedValidator: offerValidator :: Scripts.TypedValidator Offer ...
user avatar
  • 166
1 vote
2 answers
560 views

How to solve "cabal: Could not resolve dependencies" when building cardano-cli cardano-node

I'm a newbie to Cardano. I'm trying to set up a stake pool as this link explained. https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node I stuck with cabal build ...
user avatar
  • 31
1 vote
2 answers
131 views

Cabal build Caradano-cli Cardano-node error

I'm trying to create a Cardano staking pool on a raspberry pi 4 with 8GB of RAM. I've been following the coin cashew tutorial for staking pools: https://www.coincashew.com/coins/overview-ada/guide-how-...
user avatar
3 votes
2 answers
257 views

missing node.socket

so I synced towards Alonzo mainnet with cabal build and interrupted at 92% and somehow ~/cardano/db/node.socket is missing. And no matter how many times I restart the node with cardano-node run \ --...
user avatar
  • 423
0 votes
0 answers
61 views

Why Cabal will not build Cardano api?

Hi I was just following lecture 1 when trying to build the Auction contract. Plutus commit: ea0ca4e9f9821a9dbfc5255fa0f42b6f2b3887c4 I ran Cabal clean, Cabal update, then added brew install libsodium-...
user avatar
2 votes
2 answers
214 views

How to compile plutus source code locally?

I'm trying to compile the Plutus source code locally, I tried cabal build in nix-shell, getting this error After searching the rest of the dependency tree exhaustively, these were the goals I've had ...
user avatar
1 vote
1 answer
60 views

illegal symbol `forall` in type, RankNTypes

I am trying to build Future.hs from plutus-use-case from scratch. I take two files from plutus-starter: cabal.project as is, and plutus-starter.cabal that I have to edit according to the imports in ...
user avatar
  • 423
9 votes
1 answer
181 views

plutus starter course

So I am trying to start a plutus project from scratch, as we are always just editing the .hs source files in the plutus pioneering program homeworks, wondering what are the bare necessary files needed ...
user avatar
  • 423
6 votes
2 answers
69 views

Failed to build eventful-sql-common-0.2.0

For lecture 10 of plutus pioneering program, we had to run cabal run uniswap-pab to create the contract IDs. I got this - plutus-pioneer-program-week10-0.1.0.0 (exe:uniswap-pab) (first run) Starting ...
user avatar
  • 423
10 votes
3 answers
533 views

Plutus Pioneer Program - Lecture #1- Cabal Build error

I started following the lectures on youtube and got this error when I try to build the English Auction Warning: The build command is a part of the legacy v1 style of cabal usage. Please switch to ...
user avatar
  • 101
8 votes
1 answer
84 views

How to get intellisense/auto suggestion working for Plutus in VSCode?

I've been seeing Lars get auto suggestions from his terminal when he's typing. I want the same in VSCode, how to get it? PS: I don't get auto suggestions in cabal repl too.
user avatar
14 votes
1 answer
314 views

How do I build a debug configuration of a Plutus project?

When I try to set a breakpoint in a small Plutus project such as this, I always get the following error: :b Week05.Homework1.mkPolicy cannot set breakpoint on Week05.Homework1.mkPolicy: module Week05....
user avatar
7 votes
1 answer
175 views

Plutus Pioneer Program - Lecture #1 Problem with cabal build

I ran into this dependencies error on Ubuntu when I try to build the English Auction, does anyone have an idea how to solve it ? Please switch to using either the new project style and the new-build ...
user avatar
  • 150