Module

MolDraw.Utils

Package
purescript-mol-draw
Repository
lukasturcani/molDraw

General utilities.

#toEither Source

toEither :: forall a. String -> Maybe a -> Either String a

Convert a Maybe into an Either, by providing a string, which is used as a substitute for Nothing values.