Safe Haskell | None |
---|---|
Language | Haskell2010 |
Internal utils for the other Api modules
Synopsis
- (?!) :: Maybe a -> e -> Either e a
- (?!.) :: Either e a -> (e -> e') -> Either e' a
- formatParsecError :: ParseError -> String
- failEither :: MonadFail m => Either String a -> m a
- failEitherWith :: MonadFail m => (e -> String) -> Either e a -> m a
- noInlineMaybeToStrictMaybe :: Maybe a -> StrictMaybe a
- note :: MonadFail m => String -> Maybe a -> m a
- readFileBlocking :: FilePath -> IO ByteString
- runParsecParser :: Parser a -> Text -> Parser a
- textShow :: Show a => a -> Text
- unsafeBoundedRational :: (HasCallStack, Typeable r, BoundedRational r) => Rational -> r
Documentation
formatParsecError :: ParseError -> String Source #
noInlineMaybeToStrictMaybe :: Maybe a -> StrictMaybe a Source #
readFileBlocking :: FilePath -> IO ByteString Source #
runParsecParser :: Parser a -> Text -> Parser a Source #
CLI option parsing
unsafeBoundedRational :: (HasCallStack, Typeable r, BoundedRational r) => Rational -> r Source #
Convert Rational to a bounded rational. Throw an exception when the rational is out of bounds.