Skip to content

Commit

Permalink
Flip constructor definition order to fix Ord & Bounded
Browse files Browse the repository at this point in the history
  • Loading branch information
garyb committed Oct 23, 2016
1 parent bd1e507 commit 69dcc35
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 69dcc35

Please sign in to comment.