cabal-gild-0.3.0.1: Formats package descriptions.
Safe HaskellSafe-Inferred
LanguageHaskell2010

CabalGild.Class.MonadRead

Synopsis

Documentation

class Monad m => MonadRead m where Source #

A Monad that can also read input, either from standard input (STDIN) or from a file.

Methods

read :: Maybe FilePath -> m ByteString Source #

Reads input from the given file, or from STDIN if the given file is Nothing.

Instances

Instances details
MonadRead IO Source #

Uses getContents or readFile.

Instance details

Defined in CabalGild.Class.MonadRead