matroid-0.0.0.1.1: matroid (combinatorial pre-geometries) library
Copyright(c) Immanuel Albrecht 2020-202x
LicenseBSD-3
Maintainermail@immanuel-albrecht.de
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Matroid.Internal.Helpers

Description

This module provides internal helpers for the matroid package which fall into the general category.

Synopsis

Documentation

defaultsTo Source #

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