I'm fairly new to Haskell. I'm looking to convert a list of Chars into Maybe Ints

Suppose I have a single list 

```
example = ["3..25.4"]

```

and I want to convert this list into Maybe Ints in the format:

```
[Just 3, Nothing, Nothing, Just 2, Just 5, Just 4]

```

where a full stop (.) is replaced with Nothing and n is replaced with Just n

This is my code so far:

```
yb :: [[Char]] -> [Maybe Int]
yb [[]] = []
yb (x:xs) = if x == '.' then Nothing:yb(xs) else Just x:yb(xs)

```

Not fully sure what to do next / what's wrong, although I'm aware that even if my code functioned that the order would be reversed, so that's another issue

Anyways, the error I get when i execute the code is:

```
Couldn't match the type '[Char]' with 'Int'
Expected type: [Maybe Int]    Actual type: [Maybe [Char]]

```