<p>The output seems to be generated by <a href="https://github.com/james-iohk/Alonzo-testnet/blob/update-cabal-1.29.0/resources/plutus-sources/plutus-alwayssucceeds/app/plutus-alwayssucceeds.hs" rel="nofollow noreferrer">this</a> Haskell script (plutus-alwayssucceeds.hs) sitting in the parent folder of the script you linked. &quot;plutus-alwayssucceeds.hs&quot; is defined as the entry point of the executable defined in cabal file <a href="https://github.com/james-iohk/Alonzo-testnet/blob/update-cabal-1.29.0/resources/plutus-sources/plutus-alwayssucceeds/plutus-alwayssucceeds.cabal#L65" rel="nofollow noreferrer">here</a>.</p>
<p>When you run command like <code>cabal build</code>, cabal will build &quot;plutus-alwayssucceeds.hs&quot; as an executable, which, when executed, will print out the log pasted in the question above. Notice that the actual plutus script (alwayssucceeds.plutus) is generated by function &quot;writePlutusScript&quot; <a href="https://github.com/james-iohk/Alonzo-testnet/blob/update-cabal-1.29.0/resources/plutus-sources/plutus-alwayssucceeds/app/plutus-alwayssucceeds.hs#L22" rel="nofollow noreferrer">here</a>.</p>

CC BY-SA 4.0
2021-12-29T20:25:31.403Z
2021-12-29T20:25:31.403Z
Jerry
<p>Can anyone explain in detail why this script, <a href="https://github.com/james-iohk/Alonzo-testnet/blob/update-cabal-1.29.0/resources/plutus-sources/plutus-alwayssucceeds/src/Cardano/PlutusExample/AlwaysSucceeds.hs" rel="nofollow noreferrer">https://github.com/james-iohk/Alonzo-testnet/blob/update-cabal-1.29.0/resources/plutus-sources/plutus-alwayssucceeds/src/Cardano/PlutusExample/AlwaysSucceeds.hs</a>, results in the following output?</p>
<pre><code>Writing output to: 
alwayssucceeds.plutus
&quot;Log output&quot;
[]
&quot;Ex Budget&quot;
ExBudget {exBudgetCPU = ExCPU 297830, exBudgetMemory = ExMemory 1100}
</code></pre>
<p>Thanks, Myles</p>

<plutus><smart-contract><haskell>
Question about Plutus smart contract which always succeeds
# Question about Plutus smart contract which always succeeds

(Asked by: username_0 on 2021-12-29)

Can anyone explain in detail why this script, https://github.com/james-iohk/Alonzo-testnet/blob/update-cabal-1.29.0/resources/plutus-sources/plutus-alwayssucceeds/src/Cardano/PlutusExample/AlwaysSucceeds.hs, results in the following output?
Writing output to: 
alwayssucceeds.plutus
"Log output"
[]
"Ex Budget"
ExBudget {exBudgetCPU = ExCPU 297830, exBudgetMemory = ExMemory 1100}

Thanks, Myles

**Tags:** plutus, smart-contract, haskell

---

## 1 answers

### Answer by username_1 on 2021-12-29. Score: 1

The output seems to be generated by [this](https://github.com/james-iohk/Alonzo-testnet/blob/update-cabal-1.29.0/resources/plutus-sources/plutus-alwayssucceeds/app/plutus-alwayssucceeds.hs) Haskell script (plutus-alwayssucceeds.hs) sitting in the parent folder of the script you linked. "plutus-alwayssucceeds.hs" is defined as the entry point of the executable defined in cabal file [here](https://github.com/james-iohk/Alonzo-testnet/blob/update-cabal-1.29.0/resources/plutus-sources/plutus-alwayssucceeds/plutus-alwayssucceeds.cabal#L65).

When you run command like `cabal build`, cabal will build "plutus-alwayssucceeds.hs" as an executable, which, when executed, will print out the log pasted in the question above. Notice that the actual plutus script (alwayssucceeds.plutus) is generated by function "writePlutusScript" [here](https://github.com/james-iohk/Alonzo-testnet/blob/update-cabal-1.29.0/resources/plutus-sources/plutus-alwayssucceeds/app/plutus-alwayssucceeds.hs#L22).


---

