HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

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