I have a really annoying scrap of code: unmaybe Nothing = memptyunmaybe (Just dia) = dia It happened because I'm using Diagrams but building my diagram requires looking something up in a list using findIndex, which returns Maybe Int.