Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.Api.Utils
Contents
Description
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
- parseFilePath :: String -> String -> Parser FilePath
- readFileBlocking :: FilePath -> IO ByteString
- runParsecParser :: Parser a -> Text -> Parser a
- textShow :: Show a => a -> Text
- modifyWith :: (a -> a) -> a -> a
- bounded :: forall a. (Bounded a, Integral a, Show a) => String -> ReadM a
Documentation
formatParsecError :: ParseError -> String Source #
noInlineMaybeToStrictMaybe :: Maybe a -> StrictMaybe a Source #
readFileBlocking :: FilePath -> IO ByteString Source #
runParsecParser :: Parser a -> Text -> Parser a Source #
modifyWith :: (a -> a) -> a -> a Source #
Aids type inference. Use this function to ensure the value is a function that modifies a value.