HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleqrcode-core-0.9.9Haskell2010

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, …