---
title: "Comment by oluwatomisin babatunde on \"Practical Guide to Fp-ts P2: Option, Map, Flatten, Chain\" | Hashnode"
description: "I&#39;m trying to go along with this and I think I&#39;m stuck I really don&#39;t know much about functional programming but this pipe( undefined, O.fromNullabl"
url: "https://hashnode.com/posts/practical-guide-to-fp-ts-part-2/6071ba4b8b2b857c0bdb5e52/comment/6247cdb74b4dde0dc0be5ff8"
---

[Discussion](https://hashnode.com/posts/practical-guide-to-fp-ts-part-2/6071ba4b8b2b857c0bdb5e52)

Comment [Practical Guide to Fp-ts P2: Option, Map, Flatten, Chain](https://hashnode.com/posts/practical-guide-to-fp-ts-part-2/6071ba4b8b2b857c0bdb5e52)

[oluwatomisin babatunde](https://hashnode.com/@Tomisinteazer)

[Apr 2, 2022](https://hashnode.com/posts/practical-guide-to-fp-ts-part-2/6071ba4b8b2b857c0bdb5e52/comment/6247cdb74b4dde0dc0be5ff8)

I'm trying to go along with this and I think I'm stuck I really don't know much about functional programming but this

```
pipe(
  undefined,
  O.fromNullable,
  O.map(({ bar }) => bar)
);
```

returns a **ts error** of **cannot find name O** I would like to know what I'm doing wrong? is there something I'm missing or didn't import to use the options?

[Todd Marek](https://hashnode.com/@mahabhusuku)

[Apr 14, 2022](https://hashnode.com/posts/practical-guide-to-fp-ts-part-2/6071ba4b8b2b857c0bdb5e52/comment/6247cdb74b4dde0dc0be5ff8#reply-625858ed52fb7bd53380b50c)

You need to:

```
import * as O from "fp-ts/Option"
```
