X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Data%2FMaybe.hs;h=69dd75f0cd0ca817685c2d6c2643f0ccab59a1f2;hb=c926c49d6a535729214d31815a748520561191a6;hp=abb1c19f29146620acd0116eff6f5eb35078e9c9;hpb=2a2e1617befbeebfcc5db581795fdccae09defd4;p=ghc-base.git diff --git a/Data/Maybe.hs b/Data/Maybe.hs index abb1c19..69dd75f 100644 --- a/Data/Maybe.hs +++ b/Data/Maybe.hs @@ -1,4 +1,4 @@ -{-# OPTIONS -fno-implicit-prelude #-} +{-# OPTIONS_GHC -fno-implicit-prelude #-} ----------------------------------------------------------------------------- -- | -- Module : Data.Maybe @@ -6,7 +6,7 @@ -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : libraries@haskell.org --- Stability : experimental +-- Stability : stable -- Portability : portable -- -- The Maybe type, and associated operations. @@ -128,7 +128,7 @@ listToMaybe :: [a] -> Maybe a listToMaybe [] = Nothing listToMaybe (a:_) = Just a --- | The 'catMaybes' function takes a list of "Maybe's and returns +-- | The 'catMaybes' function takes a list of 'Maybe's and returns -- a list of all the 'Just' values. catMaybes :: [Maybe a] -> [a] catMaybes ls = [x | Just x <- ls]