HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduleqrcode-core-0.9.11Haskell2010

Codec.QRCode.Data.Result

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