HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Moduleqrcode-core-0.9.11Haskell2010

Codec.QRCode.Data.Result

  • 1 type
  • 1 value
newtypenewtype Result a
#

This Maybe wrapper treats Just as success and Nothing as failure. There is no unexpected success <-> failure change.

Differences:

    instance Semigroup/Monoid Maybe where
       Nothing <> (Just x) = Just x
       mempty = Nothing
       stimes 0 (Just x) = Nothing

    instance Semigroup/Monoid Result where
       Nothing <> (Just x) = Nothing
       mempty = Just mempty
       stimes 0 (Just x) = Just (stimes 0 x)
  

Constructors

Instances25Monad, Functor, MonadFix, MonadFail, Applicative, Foldable, …