opened
csdrane
username_0
Looking at the hints provided, I should be able to name my type as `data Maybe`, but when I do so, I run into ambiguous occurrences errors (using ghci).

```
2.1.hs:5:26:
    Ambiguous occurrence ‘Maybe’
    It could refer to either ‘Main.Maybe’, defined at 2.1.hs:3:1
                          or ‘Prelude.Maybe’,
                             imported from ‘Prelude’ at 2.1.hs:1:1
                             (and originally defined in ‘GHC.Base’)

2.1.hs:6:7:
    Ambiguous occurrence ‘Just’
    It could refer to either ‘Main.Just’, defined at 2.1.hs:3:26
                          or ‘Prelude.Just’,
                             imported from ‘Prelude’ at 2.1.hs:1:1
                             (and originally defined in ‘GHC.Base’)

2.1.hs:6:28:
    Ambiguous occurrence ‘show’
    It could refer to either ‘Main.show’, defined at 2.1.hs:6:1
                          or ‘MCPrelude.show’,
                             imported from ‘MCPrelude’ at 2.1.hs:1:1-16
                             (and originally defined in ‘GHC.Show’)

2.1.hs:7:6:
    Ambiguous occurrence ‘Nothing’
    It could refer to either ‘Main.Nothing’, defined at 2.1.hs:3:16
                          or ‘Prelude.Nothing’,
                             imported from ‘Prelude’ at 2.1.hs:1:1
                             (and originally defined in ‘GHC.Base’)
```

When adding to my file `import Prelude hiding (Maybe(..))` I also get an ambiguous occurrence error with `show`.

I know that I could get around this by renaming my type but I'm mostly confused because the hints suggest this shouldn't be necessary.
Ambiguous occurrences in 2.1
issue
created
mightybyte
username_1
Are you using the code template mentioned here?

http://username_1.github.io/monad-challenges/#code-template
comment
created
csdrane
username_0
Oh, thanks, that solved it!
comment
closed
csdrane
username_0
issue