| Copyright | (c) Immanuel Albrecht 2020-202x |
|---|---|
| License | BSD-3 |
| Maintainer | mail@immanuel-albrecht.de |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Data.Matroid.Internal.Helpers
Description
This module provides internal helpers for the matroid package which fall into the general category.
Synopsis
- defaultsTo :: (a0 -> Maybe a1) -> a0 -> a1 -> a1
Documentation
Arguments
| :: (a0 -> Maybe a1) | record getter function |
| -> a0 | the matroid |
| -> a1 | default implementation of the typeclass member |
| -> a1 |
little helper that either chooses the implementation of a typeclass member from the record, or uses the default implementation