We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd1e507 commit 69dcc35Copy full SHA for 69dcc35
src/Data/Maybe.purs
@@ -14,7 +14,7 @@ import Data.Monoid (class Monoid)
14
-- | The `Maybe` type is used to represent optional values and can be seen as
15
-- | something like a type-safe `null`, where `Nothing` is `null` and `Just x`
16
-- | is the non-null value `x`.
17
-data Maybe a = Just a | Nothing
+data Maybe a = Nothing | Just a
18
19
-- | The `Functor` instance allows functions to transform the contents of a
20
-- | `Just` with the `<$>` operator:
0 commit comments