<p>I ran into this error as well for the previous homework when copy/pasting output from cat on terminal. I never quite figured out why but for some reason when copy/pasting multiline import statements formatted by stylish-haskell break the interpreter. A quick fix is to move it back up to the previous line.</p>

CC BY-SA 4.0
2022-01-31T20:17:06.060Z
I don't really know what you mean by 'moving it back up' as it starts on the first line
d_fajardo
CC BY-SA 4.0
2022-02-01T08:52:49.233Z
Yes I see what you mean now. the importr statement in the Playground must be in one line. It works now.
d_fajardo
CC BY-SA 4.0
2022-01-31T02:21:12.103Z
2022-01-31T02:21:12.103Z
Samuel Leathers
<p>I am getting this error when I try to compile the homework for Week03 of the plutus pioneer program:</p>
<pre><code>You need to import `printSchemas` in order to compile successfully, you can do this 
with either
     `import Playground.Contract`
or
     `import Playground.Contract (printSchemas)`
</code></pre>
<p>But the import already exist as per the homework draft is. Any way to debug this?</p>

CC BY-SA 4.0
2022-02-10T20:52:05.607Z
I'm having the same issue for Week04.Homework.hs. Did you find a resolution to this?
Kyle Murphy
CC BY-SA 4.0
2022-02-12T07:02:03.830Z
@Kyle Yes. The solution is once you've copied the script in playground, you have to make sure that the lines that have the imports occupy only one line. Because of Haskell beautifying the code, you'll notice that the line which imports printSchema occupies 2 lines. Just adjust that import in Playground to occupy only one line by bringing the second line up with the first. This really just concerns the Playground.
d_fajardo
<plutus><plutus-pioneer-program><plutus-playground>
printSchemas error compiling in Plutus Playground
# printSchemas error compiling in Plutus Playground

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

I am getting this error when I try to compile the homework for Week03 of the plutus pioneer program:
You need to import `printSchemas` in order to compile successfully, you can do this 
with either
     `import Playground.Contract`
or
     `import Playground.Contract (printSchemas)`

But the import already exist as per the homework draft is. Any way to debug this?

**Tags:** plutus, plutus-pioneer-program, plutus-playground
> **Comments:**
> **username_1**: I'm having the same issue for Week04.Homework.hs. Did you find a resolution to this?  
> **username_0**: @Kyle Yes. The solution is once you've copied the script in playground, you have to make sure that the lines that have the imports occupy only one line. Because of Haskell beautifying the code, you'll notice that the line which imports printSchema occupies 2 lines. Just adjust that import in Playground to occupy only one line by bringing the second line up with the first. This really just concerns the Playground.  

---

## 1 answers

### Answer by username_2 on 2022-01-31. Score: 2 | Accepted answer

I ran into this error as well for the previous homework when copy/pasting output from cat on terminal. I never quite figured out why but for some reason when copy/pasting multiline import statements formatted by stylish-haskell break the interpreter. A quick fix is to move it back up to the previous line.

> **Comments:**
> **username_0**: I don't really know what you mean by 'moving it back up' as it starts on the first line  
> **username_0**: Yes I see what you mean now. the importr statement in the Playground must be in one line. It works now.  

---

