Skip to content

Commit

Permalink
Merge pull request #24 from purescript/ctor-order
Browse files Browse the repository at this point in the history
Flip constructor definition order to fix Ord & Bounded
  • Loading branch information
garyb authored Oct 23, 2016
2 parents 35782a7 + 69dcc35 commit 299f5e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Data/Maybe.purs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Data.Monoid (class Monoid)
-- | The `Maybe` type is used to represent optional values and can be seen as
-- | something like a type-safe `null`, where `Nothing` is `null` and `Just x`
-- | is the non-null value `x`.
data Maybe a = Just a | Nothing
data Maybe a = Nothing | Just a

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

0 comments on commit 299f5e5

Please sign in to comment.