Skip to content

Commit 299f5e5

Browse files
authored
Merge pull request #24 from purescript/ctor-order
Flip constructor definition order to fix Ord & Bounded
2 parents 35782a7 + 69dcc35 commit 299f5e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/Maybe.purs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import Data.Monoid (class Monoid)
1414
-- | The `Maybe` type is used to represent optional values and can be seen as
1515
-- | something like a type-safe `null`, where `Nothing` is `null` and `Just x`
1616
-- | is the non-null value `x`.
17-
data Maybe a = Just a | Nothing
17+
data Maybe a = Nothing | Just a
1818

1919
-- | The `Functor` instance allows functions to transform the contents of a
2020
-- | `Just` with the `<$>` operator:

0 commit comments

Comments
 (0)