<p>In week02 Iteration 3 there is a function that has (). What is the purpose of that? Is it so that the function can't be used maliciously?</p>
<p><code>mkValidator :: Data -&gt; Data -&gt; Data -&gt; () </code></p>

CC BY-SA 4.0
2022-01-23T00:50:27.273Z
Welcome to Cardano SE! As a new user be sure to take the [Tour].
gRebel
CC BY-SA 4.0
2022-01-23T00:51:51.440Z
I would also suggest you read this article -> [help/dont-ask]
gRebel
<haskell>
What is the purpose of placing () at the end of the function declaration?
# What is the purpose of placing () at the end of the function declaration?

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

In week02 Iteration 3 there is a function that has (). What is the purpose of that? Is it so that the function can't be used maliciously?

`mkValidator :: Data -> Data -> Data -> ()`

**Tags:** haskell
> **Comments:**
> **username_1**: Welcome to Cardano SE! As a new user be sure to take the [Tour].  
> **username_1**: I would also suggest you read this article -> [help/dont-ask]  

---

## 0 answers

