Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
newtype ReadFilePathT e f a Source #
ReadFilePathT (FilePath -> f (Either e a)) |
Instances
type ReadFilePath e a = ReadFilePathT e Identity a Source #
type ReadFilePathT1 e f = ReadFilePathT e f () Source #
type ReadFilePath1 e f = ReadFilePath e () Source #
readFilePath :: Iso (ReadFilePath e a) (ReadFilePath e' a') (FilePath -> Either e a) (FilePath -> Either e' a') Source #
swapReadFilePath :: Functor f => Iso (ReadFilePathT e f a) (ReadFilePathT e' f a') (ReadFilePathT a f e) (ReadFilePathT a' f e') Source #
pureReadFilePath :: Applicative f => ReadFilePath e a -> ReadFilePathT e f a Source #
liftReadFilePath :: Applicative f => (FilePath -> a) -> ReadFilePathT e f a Source #
successReadFilePath :: Functor f => (FilePath -> f a) -> ReadFilePathT e f a Source #
errorReadFilePath :: Functor f => (FilePath -> f e) -> ReadFilePathT e f a Source #
maybeReadFilePath :: Functor f => (FilePath -> f (Maybe a)) -> ReadFilePathT () f a Source #
tryReadFilePath :: Exception e => (FilePath -> IO a) -> ReadFilePathT e IO a Source #