# What does these syntax means?

**URL:** <https://forum.canton.network/t/what-does-these-syntax-means/3871>\
**Category:** App Development\
**Tags:** daml\
**Created:** [February 8, 2022, 8:28am UTC](https://forum.canton.network/t/what-does-these-syntax-means/3871 "2022-02-08T08:28:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NagatoPeinI1](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/nagatopeini1/32/3072_2.png) [@NagatoPeinI1](https://forum.canton.network/u/NagatoPeinI1)\
**Post date:** [February 8, 2022, 8:28am UTC](https://forum.canton.network/t/what-does-these-syntax-means/3871/1 "2022-02-08T08:28:53Z")

</div>

```haskell
import DA.Assert ((===))
import DA.Finance.Types (Account, Asset)
import DA.Finance.Asset (AssetDeposit(..), AssetDeposit_Transfer(..), AssetDeposit_SetObservers(..))
import Prelude hiding (lookup)

```

I was going through the DAML GitHub code for the DAML finance library.  
what does `((===)), (..), hiding` means?  
What is the difference between importing `(Account, Asset) vs (AssetDeposit(..), AssetDeposit_Transfer(..), AssetDeposit_SetObservers(..))`

---

<div class="post-metadata">

**Author:** ![stefanobaghino-da](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/stefanobaghino-da/32/7057_2.png) [@stefanobaghino-da](https://forum.canton.network/u/stefanobaghino-da)\
**Post date:** [February 8, 2022, 8:58am UTC](https://forum.canton.network/t/what-does-these-syntax-means/3871/2 "2022-02-08T08:58:52Z")

</div>

The following means that you are importing the `===` function from the `DA.Assert` module. The extra pair of parentheses is needed for the compiler to correctly parse that.

```haskell
import DA.Assert ((===))

```

`hiding` means that you are “opting out” of an import. `Prelude` is imported transparently to the user. In this case we are making sure that `lookup` from the `Prelude` is hidden. You can still use it by using the fully qualified name, though.

* * *

EDIT: the following is from my original answer but as pointed out by @Luciano, it’s incorrect. Thanks for fixing it. 🙇‍♂️

The `(..)` syntax allows you to import all functions in a given module. The following means you are importing all the functions from the `DA.Finance.Asset.AssetDeposit` module and so on.

The difference between importing all the functions directly and importing just `DA.Finance.Asset` is that in the former case you can refer to the functions directly by name latter case you need to qualify the functions (`something`), in the latter you will need to qualify the function names (`Asset.AssetDeposit.something`)

```haskell
import DA.Finance.Asset (AssetDeposit(..), AssetDeposit_Transfer(..), AssetDeposit_SetObservers(..))

```

---

<div class="post-metadata">

**Author:** ![Luciano](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/luciano/32/319_2.png) [@Luciano](https://forum.canton.network/u/Luciano)\
**Post date:** [February 8, 2022, 9:11am UTC](https://forum.canton.network/t/what-does-these-syntax-means/3871/3 "2022-02-08T09:11:50Z")

</div>

> [@stefanobaghino-da](#):
>
> The `(..)` syntax allows you to import all functions in a given module

That’s not quite right. In this case, `(..)` is used to import the _constructors_ of the type, in addition to the type itself.

Also suggest looking at this post/tutorial :

[Tutorials and Guides - Daml Developers Community](https://discuss.daml.com/c/tutorials-and-guides/11)
