Return the contents of a Right-value or a default value otherwise.
Examples
Basic usage:
fromRight 1 (Right 3)3fromRight 1 (Left "foo")1
:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12
Modulecardano-crypto-1.3.0Haskell2010
Return the contents of a Right-value or a default value otherwise.
Basic usage:
fromRight 1 (Right 3)3fromRight 1 (Left "foo")1