module Maybe where maybeToList :: Maybe a -> [a] maybeToList Nothing = [] maybeToList (Just a) = [a]