<p>Build was actually successful it seems - was just taken a back by the compiler warning.</p>
<p>I re-ran <code>cabal build</code> and then it just game me an output <code>Up to date</code></p>

CC BY-SA 4.0
2022-01-17T16:23:08.887Z
2022-01-17T16:23:08.887Z
HeikoR
<p>This warning is not an error.<br />
It was a complete build with some warning that could be ok in most of the cases. The compiler will tell you about unused variables or unused imports, like this case. Sometimes that is useful because it might lead you to identify an error.<br />
This kind of warning are only shown the first time the file is compiled, that is why it didnt appear the second time you did the build.</p>

CC BY-SA 4.0
2023-02-14T17:00:57.477Z
2023-02-14T17:00:57.477Z
Manu Padilla
<p>My cabal build ended in a warning - yet not sure if this needs to be resolved or if build completed ?</p>
<p>Seems like build aborted over a warning ?</p>
<p>Below is the warning that seems to have aborted the build</p>
<pre><code>src/Week01/EnglishAuction.hs:43:1: warning: [-Wunused-imports]
    The import of ‘IO’ from module ‘Playground.Contract’ is redundant
</code></pre>
<p>Do I need to ignore working, or force build to continue with warnings, or of course try and remedy the code causing the warning.</p>
<p><a href="https://i.sstatic.net/akRrO.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/akRrO.png" alt="cabal build output" /></a></p>

CC BY-SA 4.0
2022-01-18T23:15:55.043Z
Welcome to Cardano SE! As a new user be sure to take the [Tour].  I also suggest that you take a look at [ask]
gRebel
<plutus><plutus-pioneer-program><cabal>
Error on "cabal build" - Week01 - warning is in EnglishAuction.hs
# Error on "cabal build" - Week01 - warning is in EnglishAuction.hs

(Asked by: username_0 on 2022-01-17)

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 build
src/Week01/EnglishAuction.hs:43:1: warning: [-Wunused-imports]
    The import of ‘IO’ from module ‘Playground.Contract’ is redundant

Do I need to ignore working, or force build to continue with warnings, or of course try and remedy the code causing the warning.

**Tags:** plutus, plutus-pioneer-program, cabal
> **Comments:**
> **username_1**: Welcome to Cardano SE! As a new user be sure to take the [Tour].  I also suggest that you take a look at [ask]  

---

## 2 answers

### Answer by username_0 on 2022-01-17. Score: 0

Build was actually successful it seems - was just taken a back by the compiler warning.

I re-ran `cabal build` and then it just game me an output `Up to date`


---

### Answer by username_2 on 2023-02-14. Score: 0

This warning is not an error.  
It was a complete build with some warning that could be ok in most of the cases. The compiler will tell you about unused variables or unused imports, like this case. Sometimes that is useful because it might lead you to identify an error.  
This kind of warning are only shown the first time the file is compiled, that is why it didnt appear the second time you did the build.


---

