Popularity
3.9
Declining
Activity
0.0
Stable
5
3
0
Monthly Downloads: 7
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
generic-maybe alternatives and similar packages
Based on the "generic" category.
Alternatively, view generic-maybe alternatives based on common mentions on social networks and blogs.
-
generic-records
Generically derive traversals, lenses, and prisms. -
generic-lens
Generically derive traversals, lenses, and prisms. -
generic-deriving
Generic programming library for generalised deriving. -
generic-override-aeson
Override instances used by Haskell's generic derivation -
generic-lens-labels
GHC.OverloadedLabels.IsLabel instance for lenses from ghc-generics -
generic-lens-lite
Monomorphic field lens like with generic-lens -
generic-optics-lite
Monomorphic field opics like with generic-lens
Less time debugging, more time building
Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
Promo
scoutapm.com
Do you think we are missing an alternative of generic-maybe or a related project?
Popular Comparisons
README
This module is a drop in replacement for 'Maybe'. It generalizes the functions to any types that share the same "sum of products" view of 'Maybe'.
To use the module for your type, enable GHC's DeriveGeneric extension and derive a Generic instance for your type.
{-# LANGUAGE DeriveGeneric #-}
import GHC.Generics
data Result a = Success a | Fail
deriving (Show, Generic)
After which you can use the functions, like your type was 'Maybe'
λ> fromMaybe 'a' Fail
'a'
λ> fromMaybe 'a' $ Success 'b'
'b'