File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import Control.Plus (class Plus)
10
10
11
11
import Data.Eq (class Eq1 )
12
12
import Data.Functor.Invariant (class Invariant , imapF )
13
+ import Data.Generic.Rep (class Generic )
13
14
import Data.Ord (class Ord1 )
14
15
15
16
-- | The `Maybe` type is used to represent optional values and can be seen as
@@ -216,6 +217,8 @@ instance showMaybe :: Show a => Show (Maybe a) where
216
217
show (Just x) = " (Just " <> show x <> " )"
217
218
show Nothing = " Nothing"
218
219
220
+ derive instance genericMaybe :: Generic (Maybe a ) _
221
+
219
222
-- | Takes a default value, a function, and a `Maybe` value. If the `Maybe`
220
223
-- | value is `Nothing` the default value is returned, otherwise the function
221
224
-- | is applied to the value inside the `Just` and the result is returned.
You can’t perform that action at this time.
0 commit comments