haverer-0.3.0.0: Implementation of the rules of Love Letter

Safe HaskellNone
LanguageHaskell2010

Haverer.Internal.Error

Synopsis

Documentation

assertRight :: Show a => Text -> Either a b -> b Source

Assert that the value is Right. Throws error if it's Left.

assertRight' :: Show a => Either a b -> b Source

Assert that the value is Right. Throws error if it's Left.

terror :: Text -> a

error applied to Text

Since 0.4.1